Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Model1 = Instance.new("Model")
- Model2 = Instance.new("Model")
- Part3 = Instance.new("Part")
- SpecialMesh4 = Instance.new("SpecialMesh")
- Decal5 = Instance.new("Decal")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Humanoid9 = Instance.new("Humanoid")
- Part10 = Instance.new("Part")
- Script11 = Instance.new("Script")
- Part12 = Instance.new("Part")
- Script13 = Instance.new("Script")
- ObjectValue14 = Instance.new("ObjectValue")
- IntValue15 = Instance.new("IntValue")
- Script16 = Instance.new("Script")
- Script17 = Instance.new("Script")
- Script18 = Instance.new("Script")
- Part19 = Instance.new("Part")
- Decal20 = Instance.new("Decal")
- Model21 = Instance.new("Model")
- Model22 = Instance.new("Model")
- Part23 = Instance.new("Part")
- SpecialMesh24 = Instance.new("SpecialMesh")
- Decal25 = Instance.new("Decal")
- Part26 = Instance.new("Part")
- Part27 = Instance.new("Part")
- Part28 = Instance.new("Part")
- Humanoid29 = Instance.new("Humanoid")
- Part30 = Instance.new("Part")
- Script31 = Instance.new("Script")
- Part32 = Instance.new("Part")
- Script33 = Instance.new("Script")
- ObjectValue34 = Instance.new("ObjectValue")
- IntValue35 = Instance.new("IntValue")
- Script36 = Instance.new("Script")
- Script37 = Instance.new("Script")
- Script38 = Instance.new("Script")
- Part39 = Instance.new("Part")
- Decal40 = Instance.new("Decal")
- Model41 = Instance.new("Model")
- Model42 = Instance.new("Model")
- Part43 = Instance.new("Part")
- SpecialMesh44 = Instance.new("SpecialMesh")
- Decal45 = Instance.new("Decal")
- Part46 = Instance.new("Part")
- Part47 = Instance.new("Part")
- Part48 = Instance.new("Part")
- Humanoid49 = Instance.new("Humanoid")
- Part50 = Instance.new("Part")
- Script51 = Instance.new("Script")
- Part52 = Instance.new("Part")
- Script53 = Instance.new("Script")
- ObjectValue54 = Instance.new("ObjectValue")
- IntValue55 = Instance.new("IntValue")
- Script56 = Instance.new("Script")
- Script57 = Instance.new("Script")
- Script58 = Instance.new("Script")
- Part59 = Instance.new("Part")
- Decal60 = Instance.new("Decal")
- Model61 = Instance.new("Model")
- Model62 = Instance.new("Model")
- Part63 = Instance.new("Part")
- SpecialMesh64 = Instance.new("SpecialMesh")
- Decal65 = Instance.new("Decal")
- Part66 = Instance.new("Part")
- Part67 = Instance.new("Part")
- Part68 = Instance.new("Part")
- Humanoid69 = Instance.new("Humanoid")
- Part70 = Instance.new("Part")
- Script71 = Instance.new("Script")
- Part72 = Instance.new("Part")
- Script73 = Instance.new("Script")
- ObjectValue74 = Instance.new("ObjectValue")
- IntValue75 = Instance.new("IntValue")
- Script76 = Instance.new("Script")
- Script77 = Instance.new("Script")
- Script78 = Instance.new("Script")
- Part79 = Instance.new("Part")
- Decal80 = Instance.new("Decal")
- Model81 = Instance.new("Model")
- Model82 = Instance.new("Model")
- Part83 = Instance.new("Part")
- SpecialMesh84 = Instance.new("SpecialMesh")
- Decal85 = Instance.new("Decal")
- Part86 = Instance.new("Part")
- Part87 = Instance.new("Part")
- Part88 = Instance.new("Part")
- Humanoid89 = Instance.new("Humanoid")
- Part90 = Instance.new("Part")
- Script91 = Instance.new("Script")
- Part92 = Instance.new("Part")
- Script93 = Instance.new("Script")
- ObjectValue94 = Instance.new("ObjectValue")
- IntValue95 = Instance.new("IntValue")
- Script96 = Instance.new("Script")
- Script97 = Instance.new("Script")
- Script98 = Instance.new("Script")
- Part99 = Instance.new("Part")
- Decal100 = Instance.new("Decal")
- Model101 = Instance.new("Model")
- Model102 = Instance.new("Model")
- Part103 = Instance.new("Part")
- SpecialMesh104 = Instance.new("SpecialMesh")
- Decal105 = Instance.new("Decal")
- Part106 = Instance.new("Part")
- Part107 = Instance.new("Part")
- Part108 = Instance.new("Part")
- Humanoid109 = Instance.new("Humanoid")
- Part110 = Instance.new("Part")
- Script111 = Instance.new("Script")
- Part112 = Instance.new("Part")
- Script113 = Instance.new("Script")
- ObjectValue114 = Instance.new("ObjectValue")
- IntValue115 = Instance.new("IntValue")
- Script116 = Instance.new("Script")
- Script117 = Instance.new("Script")
- Script118 = Instance.new("Script")
- Part119 = Instance.new("Part")
- Decal120 = Instance.new("Decal")
- Model121 = Instance.new("Model")
- Model122 = Instance.new("Model")
- Part123 = Instance.new("Part")
- SpecialMesh124 = Instance.new("SpecialMesh")
- Decal125 = Instance.new("Decal")
- Part126 = Instance.new("Part")
- Part127 = Instance.new("Part")
- Part128 = Instance.new("Part")
- Humanoid129 = Instance.new("Humanoid")
- Part130 = Instance.new("Part")
- Script131 = Instance.new("Script")
- Part132 = Instance.new("Part")
- Script133 = Instance.new("Script")
- ObjectValue134 = Instance.new("ObjectValue")
- IntValue135 = Instance.new("IntValue")
- Script136 = Instance.new("Script")
- Script137 = Instance.new("Script")
- Script138 = Instance.new("Script")
- Part139 = Instance.new("Part")
- Decal140 = Instance.new("Decal")
- Model141 = Instance.new("Model")
- Model142 = Instance.new("Model")
- Part143 = Instance.new("Part")
- SpecialMesh144 = Instance.new("SpecialMesh")
- Decal145 = Instance.new("Decal")
- Part146 = Instance.new("Part")
- Part147 = Instance.new("Part")
- Part148 = Instance.new("Part")
- Humanoid149 = Instance.new("Humanoid")
- Part150 = Instance.new("Part")
- Script151 = Instance.new("Script")
- Part152 = Instance.new("Part")
- Script153 = Instance.new("Script")
- ObjectValue154 = Instance.new("ObjectValue")
- IntValue155 = Instance.new("IntValue")
- Script156 = Instance.new("Script")
- Script157 = Instance.new("Script")
- Script158 = Instance.new("Script")
- Part159 = Instance.new("Part")
- Decal160 = Instance.new("Decal")
- Model161 = Instance.new("Model")
- Model162 = Instance.new("Model")
- Part163 = Instance.new("Part")
- SpecialMesh164 = Instance.new("SpecialMesh")
- Decal165 = Instance.new("Decal")
- Part166 = Instance.new("Part")
- Part167 = Instance.new("Part")
- Part168 = Instance.new("Part")
- Humanoid169 = Instance.new("Humanoid")
- Part170 = Instance.new("Part")
- Script171 = Instance.new("Script")
- Part172 = Instance.new("Part")
- Script173 = Instance.new("Script")
- ObjectValue174 = Instance.new("ObjectValue")
- IntValue175 = Instance.new("IntValue")
- Script176 = Instance.new("Script")
- Script177 = Instance.new("Script")
- Script178 = Instance.new("Script")
- Part179 = Instance.new("Part")
- Decal180 = Instance.new("Decal")
- Model181 = Instance.new("Model")
- Model182 = Instance.new("Model")
- Part183 = Instance.new("Part")
- SpecialMesh184 = Instance.new("SpecialMesh")
- Decal185 = Instance.new("Decal")
- Part186 = Instance.new("Part")
- Part187 = Instance.new("Part")
- Part188 = Instance.new("Part")
- Humanoid189 = Instance.new("Humanoid")
- Part190 = Instance.new("Part")
- Script191 = Instance.new("Script")
- Part192 = Instance.new("Part")
- Script193 = Instance.new("Script")
- ObjectValue194 = Instance.new("ObjectValue")
- IntValue195 = Instance.new("IntValue")
- Script196 = Instance.new("Script")
- Script197 = Instance.new("Script")
- Script198 = Instance.new("Script")
- Part199 = Instance.new("Part")
- Decal200 = Instance.new("Decal")
- Model201 = Instance.new("Model")
- Model202 = Instance.new("Model")
- Model203 = Instance.new("Model")
- Part204 = Instance.new("Part")
- SpecialMesh205 = Instance.new("SpecialMesh")
- Decal206 = Instance.new("Decal")
- Part207 = Instance.new("Part")
- Part208 = Instance.new("Part")
- Part209 = Instance.new("Part")
- Humanoid210 = Instance.new("Humanoid")
- Part211 = Instance.new("Part")
- Script212 = Instance.new("Script")
- Part213 = Instance.new("Part")
- Script214 = Instance.new("Script")
- ObjectValue215 = Instance.new("ObjectValue")
- IntValue216 = Instance.new("IntValue")
- Script217 = Instance.new("Script")
- Script218 = Instance.new("Script")
- Script219 = Instance.new("Script")
- Part220 = Instance.new("Part")
- Decal221 = Instance.new("Decal")
- Model222 = Instance.new("Model")
- Model223 = Instance.new("Model")
- Part224 = Instance.new("Part")
- SpecialMesh225 = Instance.new("SpecialMesh")
- Decal226 = Instance.new("Decal")
- Part227 = Instance.new("Part")
- Part228 = Instance.new("Part")
- Part229 = Instance.new("Part")
- Humanoid230 = Instance.new("Humanoid")
- Part231 = Instance.new("Part")
- Script232 = Instance.new("Script")
- Part233 = Instance.new("Part")
- Script234 = Instance.new("Script")
- ObjectValue235 = Instance.new("ObjectValue")
- IntValue236 = Instance.new("IntValue")
- Script237 = Instance.new("Script")
- Script238 = Instance.new("Script")
- Script239 = Instance.new("Script")
- Part240 = Instance.new("Part")
- Decal241 = Instance.new("Decal")
- Model242 = Instance.new("Model")
- Model243 = Instance.new("Model")
- Part244 = Instance.new("Part")
- SpecialMesh245 = Instance.new("SpecialMesh")
- Decal246 = Instance.new("Decal")
- Part247 = Instance.new("Part")
- Part248 = Instance.new("Part")
- Part249 = Instance.new("Part")
- Humanoid250 = Instance.new("Humanoid")
- Part251 = Instance.new("Part")
- Script252 = Instance.new("Script")
- Part253 = Instance.new("Part")
- Script254 = Instance.new("Script")
- ObjectValue255 = Instance.new("ObjectValue")
- IntValue256 = Instance.new("IntValue")
- Script257 = Instance.new("Script")
- Script258 = Instance.new("Script")
- Script259 = Instance.new("Script")
- Part260 = Instance.new("Part")
- Decal261 = Instance.new("Decal")
- Model262 = Instance.new("Model")
- Model263 = Instance.new("Model")
- Part264 = Instance.new("Part")
- SpecialMesh265 = Instance.new("SpecialMesh")
- Decal266 = Instance.new("Decal")
- Part267 = Instance.new("Part")
- Part268 = Instance.new("Part")
- Part269 = Instance.new("Part")
- Humanoid270 = Instance.new("Humanoid")
- Part271 = Instance.new("Part")
- Script272 = Instance.new("Script")
- Part273 = Instance.new("Part")
- Script274 = Instance.new("Script")
- ObjectValue275 = Instance.new("ObjectValue")
- IntValue276 = Instance.new("IntValue")
- Script277 = Instance.new("Script")
- Script278 = Instance.new("Script")
- Script279 = Instance.new("Script")
- Part280 = Instance.new("Part")
- Decal281 = Instance.new("Decal")
- Model282 = Instance.new("Model")
- Model283 = Instance.new("Model")
- Part284 = Instance.new("Part")
- SpecialMesh285 = Instance.new("SpecialMesh")
- Decal286 = Instance.new("Decal")
- Part287 = Instance.new("Part")
- Part288 = Instance.new("Part")
- Part289 = Instance.new("Part")
- Humanoid290 = Instance.new("Humanoid")
- Part291 = Instance.new("Part")
- Script292 = Instance.new("Script")
- Part293 = Instance.new("Part")
- Script294 = Instance.new("Script")
- ObjectValue295 = Instance.new("ObjectValue")
- IntValue296 = Instance.new("IntValue")
- Script297 = Instance.new("Script")
- Script298 = Instance.new("Script")
- Script299 = Instance.new("Script")
- Part300 = Instance.new("Part")
- Decal301 = Instance.new("Decal")
- Model302 = Instance.new("Model")
- Model303 = Instance.new("Model")
- Part304 = Instance.new("Part")
- SpecialMesh305 = Instance.new("SpecialMesh")
- Decal306 = Instance.new("Decal")
- Part307 = Instance.new("Part")
- Part308 = Instance.new("Part")
- Part309 = Instance.new("Part")
- Humanoid310 = Instance.new("Humanoid")
- Part311 = Instance.new("Part")
- Script312 = Instance.new("Script")
- Part313 = Instance.new("Part")
- Script314 = Instance.new("Script")
- ObjectValue315 = Instance.new("ObjectValue")
- IntValue316 = Instance.new("IntValue")
- Script317 = Instance.new("Script")
- Script318 = Instance.new("Script")
- Script319 = Instance.new("Script")
- Part320 = Instance.new("Part")
- Decal321 = Instance.new("Decal")
- Model322 = Instance.new("Model")
- Model323 = Instance.new("Model")
- Part324 = Instance.new("Part")
- SpecialMesh325 = Instance.new("SpecialMesh")
- Decal326 = Instance.new("Decal")
- Part327 = Instance.new("Part")
- Part328 = Instance.new("Part")
- Part329 = Instance.new("Part")
- Humanoid330 = Instance.new("Humanoid")
- Part331 = Instance.new("Part")
- Script332 = Instance.new("Script")
- Part333 = Instance.new("Part")
- Script334 = Instance.new("Script")
- ObjectValue335 = Instance.new("ObjectValue")
- IntValue336 = Instance.new("IntValue")
- Script337 = Instance.new("Script")
- Script338 = Instance.new("Script")
- Script339 = Instance.new("Script")
- Part340 = Instance.new("Part")
- Decal341 = Instance.new("Decal")
- Model342 = Instance.new("Model")
- Model343 = Instance.new("Model")
- Part344 = Instance.new("Part")
- SpecialMesh345 = Instance.new("SpecialMesh")
- Decal346 = Instance.new("Decal")
- Part347 = Instance.new("Part")
- Part348 = Instance.new("Part")
- Part349 = Instance.new("Part")
- Humanoid350 = Instance.new("Humanoid")
- Part351 = Instance.new("Part")
- Script352 = Instance.new("Script")
- Part353 = Instance.new("Part")
- Script354 = Instance.new("Script")
- ObjectValue355 = Instance.new("ObjectValue")
- IntValue356 = Instance.new("IntValue")
- Script357 = Instance.new("Script")
- Script358 = Instance.new("Script")
- Script359 = Instance.new("Script")
- Part360 = Instance.new("Part")
- Decal361 = Instance.new("Decal")
- Model362 = Instance.new("Model")
- Model363 = Instance.new("Model")
- Part364 = Instance.new("Part")
- SpecialMesh365 = Instance.new("SpecialMesh")
- Decal366 = Instance.new("Decal")
- Part367 = Instance.new("Part")
- Part368 = Instance.new("Part")
- Part369 = Instance.new("Part")
- Humanoid370 = Instance.new("Humanoid")
- Part371 = Instance.new("Part")
- Script372 = Instance.new("Script")
- Part373 = Instance.new("Part")
- Script374 = Instance.new("Script")
- ObjectValue375 = Instance.new("ObjectValue")
- IntValue376 = Instance.new("IntValue")
- Script377 = Instance.new("Script")
- Script378 = Instance.new("Script")
- Script379 = Instance.new("Script")
- Part380 = Instance.new("Part")
- Decal381 = Instance.new("Decal")
- Model382 = Instance.new("Model")
- Model383 = Instance.new("Model")
- Part384 = Instance.new("Part")
- SpecialMesh385 = Instance.new("SpecialMesh")
- Decal386 = Instance.new("Decal")
- Part387 = Instance.new("Part")
- Part388 = Instance.new("Part")
- Part389 = Instance.new("Part")
- Humanoid390 = Instance.new("Humanoid")
- Part391 = Instance.new("Part")
- Script392 = Instance.new("Script")
- Part393 = Instance.new("Part")
- Script394 = Instance.new("Script")
- ObjectValue395 = Instance.new("ObjectValue")
- IntValue396 = Instance.new("IntValue")
- Script397 = Instance.new("Script")
- Script398 = Instance.new("Script")
- Script399 = Instance.new("Script")
- Part400 = Instance.new("Part")
- Decal401 = Instance.new("Decal")
- Model0.Parent = mas
- Model1.Parent = Model0
- Model2.Name = "Zombie"
- Model2.Parent = Model1
- Model2.PrimaryPart = Part3
- Part3.Name = "Head"
- Part3.Parent = Model2
- Part3.CFrame = CFrame.new(139.591461, 6.10000706, 101.48645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part3.Orientation = Vector3.new(0, 90, 0)
- Part3.Position = Vector3.new(139.591461, 6.10000706, 101.48645)
- Part3.Rotation = Vector3.new(0, 90, 0)
- Part3.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part3.Size = Vector3.new(2, 1, 1)
- Part3.BrickColor = BrickColor.new("Medium green")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Medium green")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh4.Parent = Part3
- SpecialMesh4.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal5.Name = "face"
- Decal5.Parent = Part3
- Part6.Name = "Torso"
- Part6.Parent = Model2
- Part6.CFrame = CFrame.new(139.591461, 4.60000706, 101.48645, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part6.Orientation = Vector3.new(0, 90, 0)
- Part6.Position = Vector3.new(139.591461, 4.60000706, 101.48645)
- Part6.Rotation = Vector3.new(0, 90, 0)
- Part6.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part6.Size = Vector3.new(2, 2, 1)
- Part6.BrickColor = BrickColor.new("Reddish brown")
- Part6.LeftParamA = 0
- Part6.LeftParamB = 0
- Part6.LeftSurface = Enum.SurfaceType.Weld
- Part6.RightParamA = 0
- Part6.RightParamB = 0
- Part6.RightSurface = Enum.SurfaceType.Weld
- Part6.brickColor = BrickColor.new("Reddish brown")
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Part7.Name = "Left Leg"
- Part7.Parent = Model2
- Part7.CFrame = CFrame.new(139.591461, 2.6000061, 101.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part7.Orientation = Vector3.new(0, 90, 0)
- Part7.Position = Vector3.new(139.591461, 2.6000061, 101.98645)
- Part7.Rotation = Vector3.new(0, 90, 0)
- Part7.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part7.Size = Vector3.new(1, 2, 1)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Reddish brown")
- Part7.CanCollide = false
- Part7.brickColor = BrickColor.new("Reddish brown")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- Part8.Name = "Right Leg"
- Part8.Parent = Model2
- Part8.CFrame = CFrame.new(139.591461, 2.6000061, 100.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part8.Orientation = Vector3.new(0, 90, 0)
- Part8.Position = Vector3.new(139.591461, 2.6000061, 100.98645)
- Part8.Rotation = Vector3.new(0, 90, 0)
- Part8.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part8.Size = Vector3.new(1, 2, 1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Reddish brown")
- Part8.CanCollide = false
- Part8.brickColor = BrickColor.new("Reddish brown")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- Humanoid9.Parent = Model2
- Humanoid9.LeftLeg = Part7
- Humanoid9.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid9.RightLeg = Part8
- Humanoid9.Torso = Part6
- Part10.Name = "zarm"
- Part10.Parent = Model2
- Part10.CFrame = CFrame.new(139.091461, 5.10000706, 102.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part10.Orientation = Vector3.new(0, 180, 0)
- Part10.Position = Vector3.new(139.091461, 5.10000706, 102.98645)
- Part10.Rotation = Vector3.new(-180, 0, -180)
- Part10.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part10.Size = Vector3.new(2, 1, 1)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Medium green")
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Medium green")
- Part10.FormFactor = Enum.FormFactor.Symmetric
- Part10.formFactor = Enum.FormFactor.Symmetric
- Script11.Parent = Part10
- table.insert(cors,sandbox(Script11,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part12.Name = "zarm"
- Part12.Parent = Model2
- Part12.CFrame = CFrame.new(139.091461, 5.10000706, 99.9864502, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part12.Orientation = Vector3.new(0, 180, 0)
- Part12.Position = Vector3.new(139.091461, 5.10000706, 99.9864502)
- Part12.Rotation = Vector3.new(-180, 0, -180)
- Part12.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part12.Size = Vector3.new(2, 1, 1)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Medium green")
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Medium green")
- Part12.FormFactor = Enum.FormFactor.Symmetric
- Part12.formFactor = Enum.FormFactor.Symmetric
- Script13.Parent = Part12
- table.insert(cors,sandbox(Script13,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue14.Name = "IsNZ"
- ObjectValue14.Parent = Model2
- IntValue15.Name = "Mode"
- IntValue15.Parent = Model2
- Script16.Parent = Model2
- table.insert(cors,sandbox(Script16,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script17.Name = "Health"
- Script17.Parent = Model2
- table.insert(cors,sandbox(Script17,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script18.Name = "Respawn"
- Script18.Parent = Model2
- table.insert(cors,sandbox(Script18,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part19.Name = "Spawn Location"
- Part19.Parent = Model1
- Part19.CFrame = CFrame.new(139.113556, 0.603018999, 101.491455, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part19.Orientation = Vector3.new(0, 180, 0)
- Part19.Position = Vector3.new(139.113556, 0.603018999, 101.491455)
- Part19.Rotation = Vector3.new(-180, 0, -180)
- Part19.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part19.Size = Vector3.new(6, 1.20000005, 6)
- Part19.BottomSurface = Enum.SurfaceType.Weld
- Part19.BrickColor = BrickColor.new("Medium green")
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Medium green")
- Decal20.Parent = Part19
- Decal20.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal20.Face = Enum.NormalId.Top
- Model21.Parent = Model0
- Model22.Name = "Zombie"
- Model22.Parent = Model21
- Model22.PrimaryPart = Part23
- Part23.Name = "Head"
- Part23.Parent = Model22
- Part23.CFrame = CFrame.new(139.591461, 6.10000706, 95.4864502, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part23.Orientation = Vector3.new(0, 90, 0)
- Part23.Position = Vector3.new(139.591461, 6.10000706, 95.4864502)
- Part23.Rotation = Vector3.new(0, 90, 0)
- Part23.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part23.Size = Vector3.new(2, 1, 1)
- Part23.BrickColor = BrickColor.new("Medium green")
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.brickColor = BrickColor.new("Medium green")
- Part23.FormFactor = Enum.FormFactor.Symmetric
- Part23.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh24.Parent = Part23
- SpecialMesh24.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal25.Name = "face"
- Decal25.Parent = Part23
- Part26.Name = "Torso"
- Part26.Parent = Model22
- Part26.CFrame = CFrame.new(139.591461, 4.60000706, 95.4864502, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part26.Orientation = Vector3.new(0, 90, 0)
- Part26.Position = Vector3.new(139.591461, 4.60000706, 95.4864502)
- Part26.Rotation = Vector3.new(0, 90, 0)
- Part26.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part26.Size = Vector3.new(2, 2, 1)
- Part26.BrickColor = BrickColor.new("Reddish brown")
- Part26.LeftParamA = 0
- Part26.LeftParamB = 0
- Part26.LeftSurface = Enum.SurfaceType.Weld
- Part26.RightParamA = 0
- Part26.RightParamB = 0
- Part26.RightSurface = Enum.SurfaceType.Weld
- Part26.brickColor = BrickColor.new("Reddish brown")
- Part26.FormFactor = Enum.FormFactor.Symmetric
- Part26.formFactor = Enum.FormFactor.Symmetric
- Part27.Name = "Left Leg"
- Part27.Parent = Model22
- Part27.CFrame = CFrame.new(139.591461, 2.6000061, 95.9864502, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part27.Orientation = Vector3.new(0, 90, 0)
- Part27.Position = Vector3.new(139.591461, 2.6000061, 95.9864502)
- Part27.Rotation = Vector3.new(0, 90, 0)
- Part27.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part27.Size = Vector3.new(1, 2, 1)
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.BrickColor = BrickColor.new("Reddish brown")
- Part27.CanCollide = false
- Part27.brickColor = BrickColor.new("Reddish brown")
- Part27.FormFactor = Enum.FormFactor.Symmetric
- Part27.formFactor = Enum.FormFactor.Symmetric
- Part28.Name = "Right Leg"
- Part28.Parent = Model22
- Part28.CFrame = CFrame.new(139.591461, 2.6000061, 94.9864502, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part28.Orientation = Vector3.new(0, 90, 0)
- Part28.Position = Vector3.new(139.591461, 2.6000061, 94.9864502)
- Part28.Rotation = Vector3.new(0, 90, 0)
- Part28.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part28.Size = Vector3.new(1, 2, 1)
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.BrickColor = BrickColor.new("Reddish brown")
- Part28.CanCollide = false
- Part28.brickColor = BrickColor.new("Reddish brown")
- Part28.FormFactor = Enum.FormFactor.Symmetric
- Part28.formFactor = Enum.FormFactor.Symmetric
- Humanoid29.Parent = Model22
- Humanoid29.LeftLeg = Part27
- Humanoid29.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid29.RightLeg = Part28
- Humanoid29.Torso = Part26
- Part30.Name = "zarm"
- Part30.Parent = Model22
- Part30.CFrame = CFrame.new(139.091461, 5.10000706, 96.9864502, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part30.Orientation = Vector3.new(0, 180, 0)
- Part30.Position = Vector3.new(139.091461, 5.10000706, 96.9864502)
- Part30.Rotation = Vector3.new(-180, 0, -180)
- Part30.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part30.Size = Vector3.new(2, 1, 1)
- Part30.BottomSurface = Enum.SurfaceType.Smooth
- Part30.BrickColor = BrickColor.new("Medium green")
- Part30.TopSurface = Enum.SurfaceType.Smooth
- Part30.brickColor = BrickColor.new("Medium green")
- Part30.FormFactor = Enum.FormFactor.Symmetric
- Part30.formFactor = Enum.FormFactor.Symmetric
- Script31.Parent = Part30
- table.insert(cors,sandbox(Script31,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part32.Name = "zarm"
- Part32.Parent = Model22
- Part32.CFrame = CFrame.new(139.091461, 5.10000706, 93.9864502, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part32.Orientation = Vector3.new(0, 180, 0)
- Part32.Position = Vector3.new(139.091461, 5.10000706, 93.9864502)
- Part32.Rotation = Vector3.new(-180, 0, -180)
- Part32.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part32.Size = Vector3.new(2, 1, 1)
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.BrickColor = BrickColor.new("Medium green")
- Part32.TopSurface = Enum.SurfaceType.Smooth
- Part32.brickColor = BrickColor.new("Medium green")
- Part32.FormFactor = Enum.FormFactor.Symmetric
- Part32.formFactor = Enum.FormFactor.Symmetric
- Script33.Parent = Part32
- table.insert(cors,sandbox(Script33,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue34.Name = "IsNZ"
- ObjectValue34.Parent = Model22
- IntValue35.Name = "Mode"
- IntValue35.Parent = Model22
- Script36.Parent = Model22
- table.insert(cors,sandbox(Script36,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script37.Name = "Health"
- Script37.Parent = Model22
- table.insert(cors,sandbox(Script37,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script38.Name = "Respawn"
- Script38.Parent = Model22
- table.insert(cors,sandbox(Script38,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part39.Name = "Spawn Location"
- Part39.Parent = Model21
- Part39.CFrame = CFrame.new(139.091461, 0.600013018, 95.4864502, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part39.Orientation = Vector3.new(0, 180, 0)
- Part39.Position = Vector3.new(139.091461, 0.600013018, 95.4864502)
- Part39.Rotation = Vector3.new(-180, 0, -180)
- Part39.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part39.Size = Vector3.new(6, 1.20000005, 6)
- Part39.BottomSurface = Enum.SurfaceType.Weld
- Part39.BrickColor = BrickColor.new("Medium green")
- Part39.TopSurface = Enum.SurfaceType.Smooth
- Part39.brickColor = BrickColor.new("Medium green")
- Decal40.Parent = Part39
- Decal40.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal40.Face = Enum.NormalId.Top
- Model41.Parent = Model0
- Model42.Name = "Zombie"
- Model42.Parent = Model41
- Model42.PrimaryPart = Part43
- Part43.Name = "Head"
- Part43.Parent = Model42
- Part43.CFrame = CFrame.new(139.591461, 6.10000706, 119.48645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part43.Orientation = Vector3.new(0, 90, 0)
- Part43.Position = Vector3.new(139.591461, 6.10000706, 119.48645)
- Part43.Rotation = Vector3.new(0, 90, 0)
- Part43.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part43.Size = Vector3.new(2, 1, 1)
- Part43.BrickColor = BrickColor.new("Medium green")
- Part43.TopSurface = Enum.SurfaceType.Smooth
- Part43.brickColor = BrickColor.new("Medium green")
- Part43.FormFactor = Enum.FormFactor.Symmetric
- Part43.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh44.Parent = Part43
- SpecialMesh44.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal45.Name = "face"
- Decal45.Parent = Part43
- Part46.Name = "Torso"
- Part46.Parent = Model42
- Part46.CFrame = CFrame.new(139.591461, 4.60000706, 119.48645, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part46.Orientation = Vector3.new(0, 90, 0)
- Part46.Position = Vector3.new(139.591461, 4.60000706, 119.48645)
- Part46.Rotation = Vector3.new(0, 90, 0)
- Part46.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part46.Size = Vector3.new(2, 2, 1)
- Part46.BrickColor = BrickColor.new("Reddish brown")
- Part46.LeftParamA = 0
- Part46.LeftParamB = 0
- Part46.LeftSurface = Enum.SurfaceType.Weld
- Part46.RightParamA = 0
- Part46.RightParamB = 0
- Part46.RightSurface = Enum.SurfaceType.Weld
- Part46.brickColor = BrickColor.new("Reddish brown")
- Part46.FormFactor = Enum.FormFactor.Symmetric
- Part46.formFactor = Enum.FormFactor.Symmetric
- Part47.Name = "Left Leg"
- Part47.Parent = Model42
- Part47.CFrame = CFrame.new(139.591461, 2.6000061, 119.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part47.Orientation = Vector3.new(0, 90, 0)
- Part47.Position = Vector3.new(139.591461, 2.6000061, 119.98645)
- Part47.Rotation = Vector3.new(0, 90, 0)
- Part47.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part47.Size = Vector3.new(1, 2, 1)
- Part47.BottomSurface = Enum.SurfaceType.Smooth
- Part47.BrickColor = BrickColor.new("Reddish brown")
- Part47.CanCollide = false
- Part47.brickColor = BrickColor.new("Reddish brown")
- Part47.FormFactor = Enum.FormFactor.Symmetric
- Part47.formFactor = Enum.FormFactor.Symmetric
- Part48.Name = "Right Leg"
- Part48.Parent = Model42
- Part48.CFrame = CFrame.new(139.591461, 2.6000061, 118.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part48.Orientation = Vector3.new(0, 90, 0)
- Part48.Position = Vector3.new(139.591461, 2.6000061, 118.98645)
- Part48.Rotation = Vector3.new(0, 90, 0)
- Part48.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part48.Size = Vector3.new(1, 2, 1)
- Part48.BottomSurface = Enum.SurfaceType.Smooth
- Part48.BrickColor = BrickColor.new("Reddish brown")
- Part48.CanCollide = false
- Part48.brickColor = BrickColor.new("Reddish brown")
- Part48.FormFactor = Enum.FormFactor.Symmetric
- Part48.formFactor = Enum.FormFactor.Symmetric
- Humanoid49.Parent = Model42
- Humanoid49.LeftLeg = Part47
- Humanoid49.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid49.RightLeg = Part48
- Humanoid49.Torso = Part46
- Part50.Name = "zarm"
- Part50.Parent = Model42
- Part50.CFrame = CFrame.new(139.091461, 5.10000706, 120.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part50.Orientation = Vector3.new(0, 180, 0)
- Part50.Position = Vector3.new(139.091461, 5.10000706, 120.98645)
- Part50.Rotation = Vector3.new(-180, 0, -180)
- Part50.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part50.Size = Vector3.new(2, 1, 1)
- Part50.BottomSurface = Enum.SurfaceType.Smooth
- Part50.BrickColor = BrickColor.new("Medium green")
- Part50.TopSurface = Enum.SurfaceType.Smooth
- Part50.brickColor = BrickColor.new("Medium green")
- Part50.FormFactor = Enum.FormFactor.Symmetric
- Part50.formFactor = Enum.FormFactor.Symmetric
- Script51.Parent = Part50
- table.insert(cors,sandbox(Script51,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part52.Name = "zarm"
- Part52.Parent = Model42
- Part52.CFrame = CFrame.new(139.091461, 5.10000706, 117.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part52.Orientation = Vector3.new(0, 180, 0)
- Part52.Position = Vector3.new(139.091461, 5.10000706, 117.98645)
- Part52.Rotation = Vector3.new(-180, 0, -180)
- Part52.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part52.Size = Vector3.new(2, 1, 1)
- Part52.BottomSurface = Enum.SurfaceType.Smooth
- Part52.BrickColor = BrickColor.new("Medium green")
- Part52.TopSurface = Enum.SurfaceType.Smooth
- Part52.brickColor = BrickColor.new("Medium green")
- Part52.FormFactor = Enum.FormFactor.Symmetric
- Part52.formFactor = Enum.FormFactor.Symmetric
- Script53.Parent = Part52
- table.insert(cors,sandbox(Script53,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue54.Name = "IsNZ"
- ObjectValue54.Parent = Model42
- IntValue55.Name = "Mode"
- IntValue55.Parent = Model42
- Script56.Parent = Model42
- table.insert(cors,sandbox(Script56,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script57.Name = "Health"
- Script57.Parent = Model42
- table.insert(cors,sandbox(Script57,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script58.Name = "Respawn"
- Script58.Parent = Model42
- table.insert(cors,sandbox(Script58,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part59.Name = "Spawn Location"
- Part59.Parent = Model41
- Part59.CFrame = CFrame.new(139.113556, 0.603018999, 119.491455, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part59.Orientation = Vector3.new(0, 180, 0)
- Part59.Position = Vector3.new(139.113556, 0.603018999, 119.491455)
- Part59.Rotation = Vector3.new(-180, 0, -180)
- Part59.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part59.Size = Vector3.new(6, 1.20000005, 6)
- Part59.BottomSurface = Enum.SurfaceType.Weld
- Part59.BrickColor = BrickColor.new("Medium green")
- Part59.TopSurface = Enum.SurfaceType.Smooth
- Part59.brickColor = BrickColor.new("Medium green")
- Decal60.Parent = Part59
- Decal60.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal60.Face = Enum.NormalId.Top
- Model61.Parent = Model0
- Model62.Name = "Zombie"
- Model62.Parent = Model61
- Model62.PrimaryPart = Part63
- Part63.Name = "Head"
- Part63.Parent = Model62
- Part63.CFrame = CFrame.new(139.608551, 6.10000706, 107.513443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part63.Orientation = Vector3.new(0, 90, 0)
- Part63.Position = Vector3.new(139.608551, 6.10000706, 107.513443)
- Part63.Rotation = Vector3.new(0, 90, 0)
- Part63.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part63.Size = Vector3.new(2, 1, 1)
- Part63.BrickColor = BrickColor.new("Medium green")
- Part63.TopSurface = Enum.SurfaceType.Smooth
- Part63.brickColor = BrickColor.new("Medium green")
- Part63.FormFactor = Enum.FormFactor.Symmetric
- Part63.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh64.Parent = Part63
- SpecialMesh64.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal65.Name = "face"
- Decal65.Parent = Part63
- Part66.Name = "Torso"
- Part66.Parent = Model62
- Part66.CFrame = CFrame.new(139.608551, 4.60000706, 107.513443, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part66.Orientation = Vector3.new(0, 90, 0)
- Part66.Position = Vector3.new(139.608551, 4.60000706, 107.513443)
- Part66.Rotation = Vector3.new(0, 90, 0)
- Part66.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part66.Size = Vector3.new(2, 2, 1)
- Part66.BrickColor = BrickColor.new("Reddish brown")
- Part66.LeftParamA = 0
- Part66.LeftParamB = 0
- Part66.LeftSurface = Enum.SurfaceType.Weld
- Part66.RightParamA = 0
- Part66.RightParamB = 0
- Part66.RightSurface = Enum.SurfaceType.Weld
- Part66.brickColor = BrickColor.new("Reddish brown")
- Part66.FormFactor = Enum.FormFactor.Symmetric
- Part66.formFactor = Enum.FormFactor.Symmetric
- Part67.Name = "Left Leg"
- Part67.Parent = Model62
- Part67.CFrame = CFrame.new(139.608551, 2.6000061, 108.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part67.Orientation = Vector3.new(0, 90, 0)
- Part67.Position = Vector3.new(139.608551, 2.6000061, 108.013443)
- Part67.Rotation = Vector3.new(0, 90, 0)
- Part67.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part67.Size = Vector3.new(1, 2, 1)
- Part67.BottomSurface = Enum.SurfaceType.Smooth
- Part67.BrickColor = BrickColor.new("Reddish brown")
- Part67.CanCollide = false
- Part67.brickColor = BrickColor.new("Reddish brown")
- Part67.FormFactor = Enum.FormFactor.Symmetric
- Part67.formFactor = Enum.FormFactor.Symmetric
- Part68.Name = "Right Leg"
- Part68.Parent = Model62
- Part68.CFrame = CFrame.new(139.608551, 2.6000061, 107.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part68.Orientation = Vector3.new(0, 90, 0)
- Part68.Position = Vector3.new(139.608551, 2.6000061, 107.013443)
- Part68.Rotation = Vector3.new(0, 90, 0)
- Part68.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part68.Size = Vector3.new(1, 2, 1)
- Part68.BottomSurface = Enum.SurfaceType.Smooth
- Part68.BrickColor = BrickColor.new("Reddish brown")
- Part68.CanCollide = false
- Part68.brickColor = BrickColor.new("Reddish brown")
- Part68.FormFactor = Enum.FormFactor.Symmetric
- Part68.formFactor = Enum.FormFactor.Symmetric
- Humanoid69.Parent = Model62
- Humanoid69.LeftLeg = Part67
- Humanoid69.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid69.RightLeg = Part68
- Humanoid69.Torso = Part66
- Part70.Name = "zarm"
- Part70.Parent = Model62
- Part70.CFrame = CFrame.new(139.108551, 5.10000706, 109.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part70.Orientation = Vector3.new(0, 180, 0)
- Part70.Position = Vector3.new(139.108551, 5.10000706, 109.013443)
- Part70.Rotation = Vector3.new(-180, 0, -180)
- Part70.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part70.Size = Vector3.new(2, 1, 1)
- Part70.BottomSurface = Enum.SurfaceType.Smooth
- Part70.BrickColor = BrickColor.new("Medium green")
- Part70.TopSurface = Enum.SurfaceType.Smooth
- Part70.brickColor = BrickColor.new("Medium green")
- Part70.FormFactor = Enum.FormFactor.Symmetric
- Part70.formFactor = Enum.FormFactor.Symmetric
- Script71.Parent = Part70
- table.insert(cors,sandbox(Script71,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part72.Name = "zarm"
- Part72.Parent = Model62
- Part72.CFrame = CFrame.new(139.108551, 5.10000706, 106.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part72.Orientation = Vector3.new(0, 180, 0)
- Part72.Position = Vector3.new(139.108551, 5.10000706, 106.013443)
- Part72.Rotation = Vector3.new(-180, 0, -180)
- Part72.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part72.Size = Vector3.new(2, 1, 1)
- Part72.BottomSurface = Enum.SurfaceType.Smooth
- Part72.BrickColor = BrickColor.new("Medium green")
- Part72.TopSurface = Enum.SurfaceType.Smooth
- Part72.brickColor = BrickColor.new("Medium green")
- Part72.FormFactor = Enum.FormFactor.Symmetric
- Part72.formFactor = Enum.FormFactor.Symmetric
- Script73.Parent = Part72
- table.insert(cors,sandbox(Script73,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue74.Name = "IsNZ"
- ObjectValue74.Parent = Model62
- IntValue75.Name = "Mode"
- IntValue75.Parent = Model62
- Script76.Parent = Model62
- table.insert(cors,sandbox(Script76,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script77.Name = "Health"
- Script77.Parent = Model62
- table.insert(cors,sandbox(Script77,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script78.Name = "Respawn"
- Script78.Parent = Model62
- table.insert(cors,sandbox(Script78,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part79.Name = "Spawn Location"
- Part79.Parent = Model61
- Part79.CFrame = CFrame.new(139.113556, 0.603018999, 107.491455, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part79.Orientation = Vector3.new(0, 180, 0)
- Part79.Position = Vector3.new(139.113556, 0.603018999, 107.491455)
- Part79.Rotation = Vector3.new(-180, 0, -180)
- Part79.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part79.Size = Vector3.new(6, 1.20000005, 6)
- Part79.BottomSurface = Enum.SurfaceType.Weld
- Part79.BrickColor = BrickColor.new("Medium green")
- Part79.TopSurface = Enum.SurfaceType.Smooth
- Part79.brickColor = BrickColor.new("Medium green")
- Decal80.Parent = Part79
- Decal80.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal80.Face = Enum.NormalId.Top
- Model81.Parent = Model0
- Model82.Name = "Zombie"
- Model82.Parent = Model81
- Model82.PrimaryPart = Part83
- Part83.Name = "Head"
- Part83.Parent = Model82
- Part83.CFrame = CFrame.new(139.608551, 6.10000706, 113.513443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part83.Orientation = Vector3.new(0, 90, 0)
- Part83.Position = Vector3.new(139.608551, 6.10000706, 113.513443)
- Part83.Rotation = Vector3.new(0, 90, 0)
- Part83.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part83.Size = Vector3.new(2, 1, 1)
- Part83.BrickColor = BrickColor.new("Medium green")
- Part83.TopSurface = Enum.SurfaceType.Smooth
- Part83.brickColor = BrickColor.new("Medium green")
- Part83.FormFactor = Enum.FormFactor.Symmetric
- Part83.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh84.Parent = Part83
- SpecialMesh84.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal85.Name = "face"
- Decal85.Parent = Part83
- Part86.Name = "Torso"
- Part86.Parent = Model82
- Part86.CFrame = CFrame.new(139.608551, 4.60000706, 113.513443, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part86.Orientation = Vector3.new(0, 90, 0)
- Part86.Position = Vector3.new(139.608551, 4.60000706, 113.513443)
- Part86.Rotation = Vector3.new(0, 90, 0)
- Part86.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part86.Size = Vector3.new(2, 2, 1)
- Part86.BrickColor = BrickColor.new("Reddish brown")
- Part86.LeftParamA = 0
- Part86.LeftParamB = 0
- Part86.LeftSurface = Enum.SurfaceType.Weld
- Part86.RightParamA = 0
- Part86.RightParamB = 0
- Part86.RightSurface = Enum.SurfaceType.Weld
- Part86.brickColor = BrickColor.new("Reddish brown")
- Part86.FormFactor = Enum.FormFactor.Symmetric
- Part86.formFactor = Enum.FormFactor.Symmetric
- Part87.Name = "Left Leg"
- Part87.Parent = Model82
- Part87.CFrame = CFrame.new(139.608551, 2.6000061, 114.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part87.Orientation = Vector3.new(0, 90, 0)
- Part87.Position = Vector3.new(139.608551, 2.6000061, 114.013443)
- Part87.Rotation = Vector3.new(0, 90, 0)
- Part87.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part87.Size = Vector3.new(1, 2, 1)
- Part87.BottomSurface = Enum.SurfaceType.Smooth
- Part87.BrickColor = BrickColor.new("Reddish brown")
- Part87.CanCollide = false
- Part87.brickColor = BrickColor.new("Reddish brown")
- Part87.FormFactor = Enum.FormFactor.Symmetric
- Part87.formFactor = Enum.FormFactor.Symmetric
- Part88.Name = "Right Leg"
- Part88.Parent = Model82
- Part88.CFrame = CFrame.new(139.608551, 2.6000061, 113.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part88.Orientation = Vector3.new(0, 90, 0)
- Part88.Position = Vector3.new(139.608551, 2.6000061, 113.013443)
- Part88.Rotation = Vector3.new(0, 90, 0)
- Part88.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part88.Size = Vector3.new(1, 2, 1)
- Part88.BottomSurface = Enum.SurfaceType.Smooth
- Part88.BrickColor = BrickColor.new("Reddish brown")
- Part88.CanCollide = false
- Part88.brickColor = BrickColor.new("Reddish brown")
- Part88.FormFactor = Enum.FormFactor.Symmetric
- Part88.formFactor = Enum.FormFactor.Symmetric
- Humanoid89.Parent = Model82
- Humanoid89.LeftLeg = Part87
- Humanoid89.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid89.RightLeg = Part88
- Humanoid89.Torso = Part86
- Part90.Name = "zarm"
- Part90.Parent = Model82
- Part90.CFrame = CFrame.new(139.108551, 5.10000706, 115.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part90.Orientation = Vector3.new(0, 180, 0)
- Part90.Position = Vector3.new(139.108551, 5.10000706, 115.013443)
- Part90.Rotation = Vector3.new(-180, 0, -180)
- Part90.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part90.Size = Vector3.new(2, 1, 1)
- Part90.BottomSurface = Enum.SurfaceType.Smooth
- Part90.BrickColor = BrickColor.new("Medium green")
- Part90.TopSurface = Enum.SurfaceType.Smooth
- Part90.brickColor = BrickColor.new("Medium green")
- Part90.FormFactor = Enum.FormFactor.Symmetric
- Part90.formFactor = Enum.FormFactor.Symmetric
- Script91.Parent = Part90
- table.insert(cors,sandbox(Script91,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part92.Name = "zarm"
- Part92.Parent = Model82
- Part92.CFrame = CFrame.new(139.108551, 5.10000706, 112.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part92.Orientation = Vector3.new(0, 180, 0)
- Part92.Position = Vector3.new(139.108551, 5.10000706, 112.013443)
- Part92.Rotation = Vector3.new(-180, 0, -180)
- Part92.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part92.Size = Vector3.new(2, 1, 1)
- Part92.BottomSurface = Enum.SurfaceType.Smooth
- Part92.BrickColor = BrickColor.new("Medium green")
- Part92.TopSurface = Enum.SurfaceType.Smooth
- Part92.brickColor = BrickColor.new("Medium green")
- Part92.FormFactor = Enum.FormFactor.Symmetric
- Part92.formFactor = Enum.FormFactor.Symmetric
- Script93.Parent = Part92
- table.insert(cors,sandbox(Script93,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue94.Name = "IsNZ"
- ObjectValue94.Parent = Model82
- IntValue95.Name = "Mode"
- IntValue95.Parent = Model82
- Script96.Parent = Model82
- table.insert(cors,sandbox(Script96,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script97.Name = "Health"
- Script97.Parent = Model82
- table.insert(cors,sandbox(Script97,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script98.Name = "Respawn"
- Script98.Parent = Model82
- table.insert(cors,sandbox(Script98,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part99.Name = "Spawn Location"
- Part99.Parent = Model81
- Part99.CFrame = CFrame.new(139.113571, 0.603018999, 113.49147, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part99.Orientation = Vector3.new(0, 180, 0)
- Part99.Position = Vector3.new(139.113571, 0.603018999, 113.49147)
- Part99.Rotation = Vector3.new(-180, 0, -180)
- Part99.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part99.Size = Vector3.new(6, 1.20000005, 6)
- Part99.BottomSurface = Enum.SurfaceType.Weld
- Part99.BrickColor = BrickColor.new("Medium green")
- Part99.TopSurface = Enum.SurfaceType.Smooth
- Part99.brickColor = BrickColor.new("Medium green")
- Decal100.Parent = Part99
- Decal100.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal100.Face = Enum.NormalId.Top
- Model101.Parent = Model0
- Model102.Name = "Zombie"
- Model102.Parent = Model101
- Model102.PrimaryPart = Part103
- Part103.Name = "Head"
- Part103.Parent = Model102
- Part103.CFrame = CFrame.new(133.586472, 6.09701204, 95.5084534, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part103.Orientation = Vector3.new(0, 90, 0)
- Part103.Position = Vector3.new(133.586472, 6.09701204, 95.5084534)
- Part103.Rotation = Vector3.new(0, 90, 0)
- Part103.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part103.Size = Vector3.new(2, 1, 1)
- Part103.BrickColor = BrickColor.new("Medium green")
- Part103.TopSurface = Enum.SurfaceType.Smooth
- Part103.brickColor = BrickColor.new("Medium green")
- Part103.FormFactor = Enum.FormFactor.Symmetric
- Part103.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh104.Parent = Part103
- SpecialMesh104.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal105.Name = "face"
- Decal105.Parent = Part103
- Part106.Name = "Torso"
- Part106.Parent = Model102
- Part106.CFrame = CFrame.new(133.586472, 4.59701204, 95.5084534, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part106.Orientation = Vector3.new(0, 90, 0)
- Part106.Position = Vector3.new(133.586472, 4.59701204, 95.5084534)
- Part106.Rotation = Vector3.new(0, 90, 0)
- Part106.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part106.Size = Vector3.new(2, 2, 1)
- Part106.BrickColor = BrickColor.new("Reddish brown")
- Part106.LeftParamA = 0
- Part106.LeftParamB = 0
- Part106.LeftSurface = Enum.SurfaceType.Weld
- Part106.RightParamA = 0
- Part106.RightParamB = 0
- Part106.RightSurface = Enum.SurfaceType.Weld
- Part106.brickColor = BrickColor.new("Reddish brown")
- Part106.FormFactor = Enum.FormFactor.Symmetric
- Part106.formFactor = Enum.FormFactor.Symmetric
- Part107.Name = "Left Leg"
- Part107.Parent = Model102
- Part107.CFrame = CFrame.new(133.586472, 2.59700823, 96.0084534, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part107.Orientation = Vector3.new(0, 90, 0)
- Part107.Position = Vector3.new(133.586472, 2.59700823, 96.0084534)
- Part107.Rotation = Vector3.new(0, 90, 0)
- Part107.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part107.Size = Vector3.new(1, 2, 1)
- Part107.BottomSurface = Enum.SurfaceType.Smooth
- Part107.BrickColor = BrickColor.new("Reddish brown")
- Part107.CanCollide = false
- Part107.brickColor = BrickColor.new("Reddish brown")
- Part107.FormFactor = Enum.FormFactor.Symmetric
- Part107.formFactor = Enum.FormFactor.Symmetric
- Part108.Name = "Right Leg"
- Part108.Parent = Model102
- Part108.CFrame = CFrame.new(133.586472, 2.59700823, 95.0084534, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part108.Orientation = Vector3.new(0, 90, 0)
- Part108.Position = Vector3.new(133.586472, 2.59700823, 95.0084534)
- Part108.Rotation = Vector3.new(0, 90, 0)
- Part108.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part108.Size = Vector3.new(1, 2, 1)
- Part108.BottomSurface = Enum.SurfaceType.Smooth
- Part108.BrickColor = BrickColor.new("Reddish brown")
- Part108.CanCollide = false
- Part108.brickColor = BrickColor.new("Reddish brown")
- Part108.FormFactor = Enum.FormFactor.Symmetric
- Part108.formFactor = Enum.FormFactor.Symmetric
- Humanoid109.Parent = Model102
- Humanoid109.LeftLeg = Part107
- Humanoid109.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid109.RightLeg = Part108
- Humanoid109.Torso = Part106
- Part110.Name = "zarm"
- Part110.Parent = Model102
- Part110.CFrame = CFrame.new(133.086472, 5.09701204, 97.0084534, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part110.Orientation = Vector3.new(0, 180, 0)
- Part110.Position = Vector3.new(133.086472, 5.09701204, 97.0084534)
- Part110.Rotation = Vector3.new(-180, 0, -180)
- Part110.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part110.Size = Vector3.new(2, 1, 1)
- Part110.BottomSurface = Enum.SurfaceType.Smooth
- Part110.BrickColor = BrickColor.new("Medium green")
- Part110.TopSurface = Enum.SurfaceType.Smooth
- Part110.brickColor = BrickColor.new("Medium green")
- Part110.FormFactor = Enum.FormFactor.Symmetric
- Part110.formFactor = Enum.FormFactor.Symmetric
- Script111.Parent = Part110
- table.insert(cors,sandbox(Script111,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part112.Name = "zarm"
- Part112.Parent = Model102
- Part112.CFrame = CFrame.new(133.086472, 5.09701204, 94.0084534, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part112.Orientation = Vector3.new(0, 180, 0)
- Part112.Position = Vector3.new(133.086472, 5.09701204, 94.0084534)
- Part112.Rotation = Vector3.new(-180, 0, -180)
- Part112.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part112.Size = Vector3.new(2, 1, 1)
- Part112.BottomSurface = Enum.SurfaceType.Smooth
- Part112.BrickColor = BrickColor.new("Medium green")
- Part112.TopSurface = Enum.SurfaceType.Smooth
- Part112.brickColor = BrickColor.new("Medium green")
- Part112.FormFactor = Enum.FormFactor.Symmetric
- Part112.formFactor = Enum.FormFactor.Symmetric
- Script113.Parent = Part112
- table.insert(cors,sandbox(Script113,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue114.Name = "IsNZ"
- ObjectValue114.Parent = Model102
- IntValue115.Name = "Mode"
- IntValue115.Parent = Model102
- Script116.Parent = Model102
- table.insert(cors,sandbox(Script116,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script117.Name = "Health"
- Script117.Parent = Model102
- table.insert(cors,sandbox(Script117,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script118.Name = "Respawn"
- Script118.Parent = Model102
- table.insert(cors,sandbox(Script118,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part119.Name = "Spawn Location"
- Part119.Parent = Model101
- Part119.CFrame = CFrame.new(133.091461, 0.600013018, 95.4864502, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part119.Orientation = Vector3.new(0, 180, 0)
- Part119.Position = Vector3.new(133.091461, 0.600013018, 95.4864502)
- Part119.Rotation = Vector3.new(-180, 0, -180)
- Part119.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part119.Size = Vector3.new(6, 1.20000005, 6)
- Part119.BottomSurface = Enum.SurfaceType.Weld
- Part119.BrickColor = BrickColor.new("Medium green")
- Part119.TopSurface = Enum.SurfaceType.Smooth
- Part119.brickColor = BrickColor.new("Medium green")
- Decal120.Parent = Part119
- Decal120.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal120.Face = Enum.NormalId.Top
- Model121.Parent = Model0
- Model122.Name = "Zombie"
- Model122.Parent = Model121
- Model122.PrimaryPart = Part123
- Part123.Name = "Head"
- Part123.Parent = Model122
- Part123.CFrame = CFrame.new(133.586472, 6.09701204, 113.508453, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part123.Orientation = Vector3.new(0, 90, 0)
- Part123.Position = Vector3.new(133.586472, 6.09701204, 113.508453)
- Part123.Rotation = Vector3.new(0, 90, 0)
- Part123.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part123.Size = Vector3.new(2, 1, 1)
- Part123.BrickColor = BrickColor.new("Medium green")
- Part123.TopSurface = Enum.SurfaceType.Smooth
- Part123.brickColor = BrickColor.new("Medium green")
- Part123.FormFactor = Enum.FormFactor.Symmetric
- Part123.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh124.Parent = Part123
- SpecialMesh124.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal125.Name = "face"
- Decal125.Parent = Part123
- Part126.Name = "Torso"
- Part126.Parent = Model122
- Part126.CFrame = CFrame.new(133.586472, 4.59701204, 113.508453, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part126.Orientation = Vector3.new(0, 90, 0)
- Part126.Position = Vector3.new(133.586472, 4.59701204, 113.508453)
- Part126.Rotation = Vector3.new(0, 90, 0)
- Part126.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part126.Size = Vector3.new(2, 2, 1)
- Part126.BrickColor = BrickColor.new("Reddish brown")
- Part126.LeftParamA = 0
- Part126.LeftParamB = 0
- Part126.LeftSurface = Enum.SurfaceType.Weld
- Part126.RightParamA = 0
- Part126.RightParamB = 0
- Part126.RightSurface = Enum.SurfaceType.Weld
- Part126.brickColor = BrickColor.new("Reddish brown")
- Part126.FormFactor = Enum.FormFactor.Symmetric
- Part126.formFactor = Enum.FormFactor.Symmetric
- Part127.Name = "Left Leg"
- Part127.Parent = Model122
- Part127.CFrame = CFrame.new(133.586472, 2.59700823, 114.008453, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part127.Orientation = Vector3.new(0, 90, 0)
- Part127.Position = Vector3.new(133.586472, 2.59700823, 114.008453)
- Part127.Rotation = Vector3.new(0, 90, 0)
- Part127.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part127.Size = Vector3.new(1, 2, 1)
- Part127.BottomSurface = Enum.SurfaceType.Smooth
- Part127.BrickColor = BrickColor.new("Reddish brown")
- Part127.CanCollide = false
- Part127.brickColor = BrickColor.new("Reddish brown")
- Part127.FormFactor = Enum.FormFactor.Symmetric
- Part127.formFactor = Enum.FormFactor.Symmetric
- Part128.Name = "Right Leg"
- Part128.Parent = Model122
- Part128.CFrame = CFrame.new(133.586472, 2.59700823, 113.008453, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part128.Orientation = Vector3.new(0, 90, 0)
- Part128.Position = Vector3.new(133.586472, 2.59700823, 113.008453)
- Part128.Rotation = Vector3.new(0, 90, 0)
- Part128.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part128.Size = Vector3.new(1, 2, 1)
- Part128.BottomSurface = Enum.SurfaceType.Smooth
- Part128.BrickColor = BrickColor.new("Reddish brown")
- Part128.CanCollide = false
- Part128.brickColor = BrickColor.new("Reddish brown")
- Part128.FormFactor = Enum.FormFactor.Symmetric
- Part128.formFactor = Enum.FormFactor.Symmetric
- Humanoid129.Parent = Model122
- Humanoid129.LeftLeg = Part127
- Humanoid129.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid129.RightLeg = Part128
- Humanoid129.Torso = Part126
- Part130.Name = "zarm"
- Part130.Parent = Model122
- Part130.CFrame = CFrame.new(133.086472, 5.09701204, 115.008453, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part130.Orientation = Vector3.new(0, 180, 0)
- Part130.Position = Vector3.new(133.086472, 5.09701204, 115.008453)
- Part130.Rotation = Vector3.new(-180, 0, -180)
- Part130.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part130.Size = Vector3.new(2, 1, 1)
- Part130.BottomSurface = Enum.SurfaceType.Smooth
- Part130.BrickColor = BrickColor.new("Medium green")
- Part130.TopSurface = Enum.SurfaceType.Smooth
- Part130.brickColor = BrickColor.new("Medium green")
- Part130.FormFactor = Enum.FormFactor.Symmetric
- Part130.formFactor = Enum.FormFactor.Symmetric
- Script131.Parent = Part130
- table.insert(cors,sandbox(Script131,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part132.Name = "zarm"
- Part132.Parent = Model122
- Part132.CFrame = CFrame.new(133.086472, 5.09701204, 112.008453, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part132.Orientation = Vector3.new(0, 180, 0)
- Part132.Position = Vector3.new(133.086472, 5.09701204, 112.008453)
- Part132.Rotation = Vector3.new(-180, 0, -180)
- Part132.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part132.Size = Vector3.new(2, 1, 1)
- Part132.BottomSurface = Enum.SurfaceType.Smooth
- Part132.BrickColor = BrickColor.new("Medium green")
- Part132.TopSurface = Enum.SurfaceType.Smooth
- Part132.brickColor = BrickColor.new("Medium green")
- Part132.FormFactor = Enum.FormFactor.Symmetric
- Part132.formFactor = Enum.FormFactor.Symmetric
- Script133.Parent = Part132
- table.insert(cors,sandbox(Script133,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue134.Name = "IsNZ"
- ObjectValue134.Parent = Model122
- IntValue135.Name = "Mode"
- IntValue135.Parent = Model122
- Script136.Parent = Model122
- table.insert(cors,sandbox(Script136,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script137.Name = "Health"
- Script137.Parent = Model122
- table.insert(cors,sandbox(Script137,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script138.Name = "Respawn"
- Script138.Parent = Model122
- table.insert(cors,sandbox(Script138,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part139.Name = "Spawn Location"
- Part139.Parent = Model121
- Part139.CFrame = CFrame.new(133.091461, 0.600013018, 113.48645, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part139.Orientation = Vector3.new(0, 180, 0)
- Part139.Position = Vector3.new(133.091461, 0.600013018, 113.48645)
- Part139.Rotation = Vector3.new(-180, 0, -180)
- Part139.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part139.Size = Vector3.new(6, 1.20000005, 6)
- Part139.BottomSurface = Enum.SurfaceType.Weld
- Part139.BrickColor = BrickColor.new("Medium green")
- Part139.TopSurface = Enum.SurfaceType.Smooth
- Part139.brickColor = BrickColor.new("Medium green")
- Decal140.Parent = Part139
- Decal140.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal140.Face = Enum.NormalId.Top
- Model141.Parent = Model0
- Model142.Name = "Zombie"
- Model142.Parent = Model141
- Model142.PrimaryPart = Part143
- Part143.Name = "Head"
- Part143.Parent = Model142
- Part143.CFrame = CFrame.new(133.591461, 6.10000706, 101.48645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part143.Orientation = Vector3.new(0, 90, 0)
- Part143.Position = Vector3.new(133.591461, 6.10000706, 101.48645)
- Part143.Rotation = Vector3.new(0, 90, 0)
- Part143.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part143.Size = Vector3.new(2, 1, 1)
- Part143.BrickColor = BrickColor.new("Medium green")
- Part143.TopSurface = Enum.SurfaceType.Smooth
- Part143.brickColor = BrickColor.new("Medium green")
- Part143.FormFactor = Enum.FormFactor.Symmetric
- Part143.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh144.Parent = Part143
- SpecialMesh144.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal145.Name = "face"
- Decal145.Parent = Part143
- Part146.Name = "Torso"
- Part146.Parent = Model142
- Part146.CFrame = CFrame.new(133.591461, 4.60000706, 101.48645, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part146.Orientation = Vector3.new(0, 90, 0)
- Part146.Position = Vector3.new(133.591461, 4.60000706, 101.48645)
- Part146.Rotation = Vector3.new(0, 90, 0)
- Part146.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part146.Size = Vector3.new(2, 2, 1)
- Part146.BrickColor = BrickColor.new("Reddish brown")
- Part146.LeftParamA = 0
- Part146.LeftParamB = 0
- Part146.LeftSurface = Enum.SurfaceType.Weld
- Part146.RightParamA = 0
- Part146.RightParamB = 0
- Part146.RightSurface = Enum.SurfaceType.Weld
- Part146.brickColor = BrickColor.new("Reddish brown")
- Part146.FormFactor = Enum.FormFactor.Symmetric
- Part146.formFactor = Enum.FormFactor.Symmetric
- Part147.Name = "Left Leg"
- Part147.Parent = Model142
- Part147.CFrame = CFrame.new(133.591461, 2.6000061, 101.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part147.Orientation = Vector3.new(0, 90, 0)
- Part147.Position = Vector3.new(133.591461, 2.6000061, 101.98645)
- Part147.Rotation = Vector3.new(0, 90, 0)
- Part147.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part147.Size = Vector3.new(1, 2, 1)
- Part147.BottomSurface = Enum.SurfaceType.Smooth
- Part147.BrickColor = BrickColor.new("Reddish brown")
- Part147.CanCollide = false
- Part147.brickColor = BrickColor.new("Reddish brown")
- Part147.FormFactor = Enum.FormFactor.Symmetric
- Part147.formFactor = Enum.FormFactor.Symmetric
- Part148.Name = "Right Leg"
- Part148.Parent = Model142
- Part148.CFrame = CFrame.new(133.591461, 2.6000061, 100.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part148.Orientation = Vector3.new(0, 90, 0)
- Part148.Position = Vector3.new(133.591461, 2.6000061, 100.98645)
- Part148.Rotation = Vector3.new(0, 90, 0)
- Part148.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part148.Size = Vector3.new(1, 2, 1)
- Part148.BottomSurface = Enum.SurfaceType.Smooth
- Part148.BrickColor = BrickColor.new("Reddish brown")
- Part148.CanCollide = false
- Part148.brickColor = BrickColor.new("Reddish brown")
- Part148.FormFactor = Enum.FormFactor.Symmetric
- Part148.formFactor = Enum.FormFactor.Symmetric
- Humanoid149.Parent = Model142
- Humanoid149.LeftLeg = Part147
- Humanoid149.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid149.RightLeg = Part148
- Humanoid149.Torso = Part146
- Part150.Name = "zarm"
- Part150.Parent = Model142
- Part150.CFrame = CFrame.new(133.091461, 5.10000706, 102.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part150.Orientation = Vector3.new(0, 180, 0)
- Part150.Position = Vector3.new(133.091461, 5.10000706, 102.98645)
- Part150.Rotation = Vector3.new(-180, 0, -180)
- Part150.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part150.Size = Vector3.new(2, 1, 1)
- Part150.BottomSurface = Enum.SurfaceType.Smooth
- Part150.BrickColor = BrickColor.new("Medium green")
- Part150.TopSurface = Enum.SurfaceType.Smooth
- Part150.brickColor = BrickColor.new("Medium green")
- Part150.FormFactor = Enum.FormFactor.Symmetric
- Part150.formFactor = Enum.FormFactor.Symmetric
- Script151.Parent = Part150
- table.insert(cors,sandbox(Script151,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part152.Name = "zarm"
- Part152.Parent = Model142
- Part152.CFrame = CFrame.new(133.091461, 5.10000706, 99.9864502, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part152.Orientation = Vector3.new(0, 180, 0)
- Part152.Position = Vector3.new(133.091461, 5.10000706, 99.9864502)
- Part152.Rotation = Vector3.new(-180, 0, -180)
- Part152.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part152.Size = Vector3.new(2, 1, 1)
- Part152.BottomSurface = Enum.SurfaceType.Smooth
- Part152.BrickColor = BrickColor.new("Medium green")
- Part152.TopSurface = Enum.SurfaceType.Smooth
- Part152.brickColor = BrickColor.new("Medium green")
- Part152.FormFactor = Enum.FormFactor.Symmetric
- Part152.formFactor = Enum.FormFactor.Symmetric
- Script153.Parent = Part152
- table.insert(cors,sandbox(Script153,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue154.Name = "IsNZ"
- ObjectValue154.Parent = Model142
- IntValue155.Name = "Mode"
- IntValue155.Parent = Model142
- Script156.Parent = Model142
- table.insert(cors,sandbox(Script156,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script157.Name = "Health"
- Script157.Parent = Model142
- table.insert(cors,sandbox(Script157,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script158.Name = "Respawn"
- Script158.Parent = Model142
- table.insert(cors,sandbox(Script158,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part159.Name = "Spawn Location"
- Part159.Parent = Model141
- Part159.CFrame = CFrame.new(133.091461, 0.600013018, 101.48645, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part159.Orientation = Vector3.new(0, 180, 0)
- Part159.Position = Vector3.new(133.091461, 0.600013018, 101.48645)
- Part159.Rotation = Vector3.new(-180, 0, -180)
- Part159.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part159.Size = Vector3.new(6, 1.20000005, 6)
- Part159.BottomSurface = Enum.SurfaceType.Weld
- Part159.BrickColor = BrickColor.new("Medium green")
- Part159.TopSurface = Enum.SurfaceType.Smooth
- Part159.brickColor = BrickColor.new("Medium green")
- Decal160.Parent = Part159
- Decal160.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal160.Face = Enum.NormalId.Top
- Model161.Parent = Model0
- Model162.Name = "Zombie"
- Model162.Parent = Model161
- Model162.PrimaryPart = Part163
- Part163.Name = "Head"
- Part163.Parent = Model162
- Part163.CFrame = CFrame.new(133.608551, 6.10000706, 107.513443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part163.Orientation = Vector3.new(0, 90, 0)
- Part163.Position = Vector3.new(133.608551, 6.10000706, 107.513443)
- Part163.Rotation = Vector3.new(0, 90, 0)
- Part163.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part163.Size = Vector3.new(2, 1, 1)
- Part163.BrickColor = BrickColor.new("Medium green")
- Part163.TopSurface = Enum.SurfaceType.Smooth
- Part163.brickColor = BrickColor.new("Medium green")
- Part163.FormFactor = Enum.FormFactor.Symmetric
- Part163.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh164.Parent = Part163
- SpecialMesh164.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal165.Name = "face"
- Decal165.Parent = Part163
- Part166.Name = "Torso"
- Part166.Parent = Model162
- Part166.CFrame = CFrame.new(133.608551, 4.60000706, 107.513443, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part166.Orientation = Vector3.new(0, 90, 0)
- Part166.Position = Vector3.new(133.608551, 4.60000706, 107.513443)
- Part166.Rotation = Vector3.new(0, 90, 0)
- Part166.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part166.Size = Vector3.new(2, 2, 1)
- Part166.BrickColor = BrickColor.new("Reddish brown")
- Part166.LeftParamA = 0
- Part166.LeftParamB = 0
- Part166.LeftSurface = Enum.SurfaceType.Weld
- Part166.RightParamA = 0
- Part166.RightParamB = 0
- Part166.RightSurface = Enum.SurfaceType.Weld
- Part166.brickColor = BrickColor.new("Reddish brown")
- Part166.FormFactor = Enum.FormFactor.Symmetric
- Part166.formFactor = Enum.FormFactor.Symmetric
- Part167.Name = "Left Leg"
- Part167.Parent = Model162
- Part167.CFrame = CFrame.new(133.608551, 2.6000061, 108.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part167.Orientation = Vector3.new(0, 90, 0)
- Part167.Position = Vector3.new(133.608551, 2.6000061, 108.013443)
- Part167.Rotation = Vector3.new(0, 90, 0)
- Part167.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part167.Size = Vector3.new(1, 2, 1)
- Part167.BottomSurface = Enum.SurfaceType.Smooth
- Part167.BrickColor = BrickColor.new("Reddish brown")
- Part167.CanCollide = false
- Part167.brickColor = BrickColor.new("Reddish brown")
- Part167.FormFactor = Enum.FormFactor.Symmetric
- Part167.formFactor = Enum.FormFactor.Symmetric
- Part168.Name = "Right Leg"
- Part168.Parent = Model162
- Part168.CFrame = CFrame.new(133.608551, 2.6000061, 107.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part168.Orientation = Vector3.new(0, 90, 0)
- Part168.Position = Vector3.new(133.608551, 2.6000061, 107.013443)
- Part168.Rotation = Vector3.new(0, 90, 0)
- Part168.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part168.Size = Vector3.new(1, 2, 1)
- Part168.BottomSurface = Enum.SurfaceType.Smooth
- Part168.BrickColor = BrickColor.new("Reddish brown")
- Part168.CanCollide = false
- Part168.brickColor = BrickColor.new("Reddish brown")
- Part168.FormFactor = Enum.FormFactor.Symmetric
- Part168.formFactor = Enum.FormFactor.Symmetric
- Humanoid169.Parent = Model162
- Humanoid169.LeftLeg = Part167
- Humanoid169.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid169.RightLeg = Part168
- Humanoid169.Torso = Part166
- Part170.Name = "zarm"
- Part170.Parent = Model162
- Part170.CFrame = CFrame.new(133.108551, 5.10000706, 109.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part170.Orientation = Vector3.new(0, 180, 0)
- Part170.Position = Vector3.new(133.108551, 5.10000706, 109.013443)
- Part170.Rotation = Vector3.new(-180, 0, -180)
- Part170.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part170.Size = Vector3.new(2, 1, 1)
- Part170.BottomSurface = Enum.SurfaceType.Smooth
- Part170.BrickColor = BrickColor.new("Medium green")
- Part170.TopSurface = Enum.SurfaceType.Smooth
- Part170.brickColor = BrickColor.new("Medium green")
- Part170.FormFactor = Enum.FormFactor.Symmetric
- Part170.formFactor = Enum.FormFactor.Symmetric
- Script171.Parent = Part170
- table.insert(cors,sandbox(Script171,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part172.Name = "zarm"
- Part172.Parent = Model162
- Part172.CFrame = CFrame.new(133.108551, 5.10000706, 106.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part172.Orientation = Vector3.new(0, 180, 0)
- Part172.Position = Vector3.new(133.108551, 5.10000706, 106.013443)
- Part172.Rotation = Vector3.new(-180, 0, -180)
- Part172.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part172.Size = Vector3.new(2, 1, 1)
- Part172.BottomSurface = Enum.SurfaceType.Smooth
- Part172.BrickColor = BrickColor.new("Medium green")
- Part172.TopSurface = Enum.SurfaceType.Smooth
- Part172.brickColor = BrickColor.new("Medium green")
- Part172.FormFactor = Enum.FormFactor.Symmetric
- Part172.formFactor = Enum.FormFactor.Symmetric
- Script173.Parent = Part172
- table.insert(cors,sandbox(Script173,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue174.Name = "IsNZ"
- ObjectValue174.Parent = Model162
- IntValue175.Name = "Mode"
- IntValue175.Parent = Model162
- Script176.Parent = Model162
- table.insert(cors,sandbox(Script176,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script177.Name = "Health"
- Script177.Parent = Model162
- table.insert(cors,sandbox(Script177,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script178.Name = "Respawn"
- Script178.Parent = Model162
- table.insert(cors,sandbox(Script178,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part179.Name = "Spawn Location"
- Part179.Parent = Model161
- Part179.CFrame = CFrame.new(133.113556, 0.603018999, 107.491455, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part179.Orientation = Vector3.new(0, 180, 0)
- Part179.Position = Vector3.new(133.113556, 0.603018999, 107.491455)
- Part179.Rotation = Vector3.new(-180, 0, -180)
- Part179.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part179.Size = Vector3.new(6, 1.20000005, 6)
- Part179.BottomSurface = Enum.SurfaceType.Weld
- Part179.BrickColor = BrickColor.new("Medium green")
- Part179.TopSurface = Enum.SurfaceType.Smooth
- Part179.brickColor = BrickColor.new("Medium green")
- Decal180.Parent = Part179
- Decal180.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal180.Face = Enum.NormalId.Top
- Model181.Parent = Model0
- Model182.Name = "Zombie"
- Model182.Parent = Model181
- Model182.PrimaryPart = Part183
- Part183.Name = "Head"
- Part183.Parent = Model182
- Part183.CFrame = CFrame.new(133.591461, 6.10000706, 119.48645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part183.Orientation = Vector3.new(0, 90, 0)
- Part183.Position = Vector3.new(133.591461, 6.10000706, 119.48645)
- Part183.Rotation = Vector3.new(0, 90, 0)
- Part183.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part183.Size = Vector3.new(2, 1, 1)
- Part183.BrickColor = BrickColor.new("Medium green")
- Part183.TopSurface = Enum.SurfaceType.Smooth
- Part183.brickColor = BrickColor.new("Medium green")
- Part183.FormFactor = Enum.FormFactor.Symmetric
- Part183.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh184.Parent = Part183
- SpecialMesh184.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal185.Name = "face"
- Decal185.Parent = Part183
- Part186.Name = "Torso"
- Part186.Parent = Model182
- Part186.CFrame = CFrame.new(133.591461, 4.60000706, 119.48645, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part186.Orientation = Vector3.new(0, 90, 0)
- Part186.Position = Vector3.new(133.591461, 4.60000706, 119.48645)
- Part186.Rotation = Vector3.new(0, 90, 0)
- Part186.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part186.Size = Vector3.new(2, 2, 1)
- Part186.BrickColor = BrickColor.new("Reddish brown")
- Part186.LeftParamA = 0
- Part186.LeftParamB = 0
- Part186.LeftSurface = Enum.SurfaceType.Weld
- Part186.RightParamA = 0
- Part186.RightParamB = 0
- Part186.RightSurface = Enum.SurfaceType.Weld
- Part186.brickColor = BrickColor.new("Reddish brown")
- Part186.FormFactor = Enum.FormFactor.Symmetric
- Part186.formFactor = Enum.FormFactor.Symmetric
- Part187.Name = "Left Leg"
- Part187.Parent = Model182
- Part187.CFrame = CFrame.new(133.591461, 2.6000061, 119.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part187.Orientation = Vector3.new(0, 90, 0)
- Part187.Position = Vector3.new(133.591461, 2.6000061, 119.98645)
- Part187.Rotation = Vector3.new(0, 90, 0)
- Part187.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part187.Size = Vector3.new(1, 2, 1)
- Part187.BottomSurface = Enum.SurfaceType.Smooth
- Part187.BrickColor = BrickColor.new("Reddish brown")
- Part187.CanCollide = false
- Part187.brickColor = BrickColor.new("Reddish brown")
- Part187.FormFactor = Enum.FormFactor.Symmetric
- Part187.formFactor = Enum.FormFactor.Symmetric
- Part188.Name = "Right Leg"
- Part188.Parent = Model182
- Part188.CFrame = CFrame.new(133.591461, 2.6000061, 118.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part188.Orientation = Vector3.new(0, 90, 0)
- Part188.Position = Vector3.new(133.591461, 2.6000061, 118.98645)
- Part188.Rotation = Vector3.new(0, 90, 0)
- Part188.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part188.Size = Vector3.new(1, 2, 1)
- Part188.BottomSurface = Enum.SurfaceType.Smooth
- Part188.BrickColor = BrickColor.new("Reddish brown")
- Part188.CanCollide = false
- Part188.brickColor = BrickColor.new("Reddish brown")
- Part188.FormFactor = Enum.FormFactor.Symmetric
- Part188.formFactor = Enum.FormFactor.Symmetric
- Humanoid189.Parent = Model182
- Humanoid189.LeftLeg = Part187
- Humanoid189.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid189.RightLeg = Part188
- Humanoid189.Torso = Part186
- Part190.Name = "zarm"
- Part190.Parent = Model182
- Part190.CFrame = CFrame.new(133.091461, 5.10000706, 120.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part190.Orientation = Vector3.new(0, 180, 0)
- Part190.Position = Vector3.new(133.091461, 5.10000706, 120.98645)
- Part190.Rotation = Vector3.new(-180, 0, -180)
- Part190.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part190.Size = Vector3.new(2, 1, 1)
- Part190.BottomSurface = Enum.SurfaceType.Smooth
- Part190.BrickColor = BrickColor.new("Medium green")
- Part190.TopSurface = Enum.SurfaceType.Smooth
- Part190.brickColor = BrickColor.new("Medium green")
- Part190.FormFactor = Enum.FormFactor.Symmetric
- Part190.formFactor = Enum.FormFactor.Symmetric
- Script191.Parent = Part190
- table.insert(cors,sandbox(Script191,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part192.Name = "zarm"
- Part192.Parent = Model182
- Part192.CFrame = CFrame.new(133.091461, 5.10000706, 117.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part192.Orientation = Vector3.new(0, 180, 0)
- Part192.Position = Vector3.new(133.091461, 5.10000706, 117.98645)
- Part192.Rotation = Vector3.new(-180, 0, -180)
- Part192.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part192.Size = Vector3.new(2, 1, 1)
- Part192.BottomSurface = Enum.SurfaceType.Smooth
- Part192.BrickColor = BrickColor.new("Medium green")
- Part192.TopSurface = Enum.SurfaceType.Smooth
- Part192.brickColor = BrickColor.new("Medium green")
- Part192.FormFactor = Enum.FormFactor.Symmetric
- Part192.formFactor = Enum.FormFactor.Symmetric
- Script193.Parent = Part192
- table.insert(cors,sandbox(Script193,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue194.Name = "IsNZ"
- ObjectValue194.Parent = Model182
- IntValue195.Name = "Mode"
- IntValue195.Parent = Model182
- Script196.Parent = Model182
- table.insert(cors,sandbox(Script196,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script197.Name = "Health"
- Script197.Parent = Model182
- table.insert(cors,sandbox(Script197,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script198.Name = "Respawn"
- Script198.Parent = Model182
- table.insert(cors,sandbox(Script198,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part199.Name = "Spawn Location"
- Part199.Parent = Model181
- Part199.CFrame = CFrame.new(133.091461, 0.600013018, 119.48645, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part199.Orientation = Vector3.new(0, 180, 0)
- Part199.Position = Vector3.new(133.091461, 0.600013018, 119.48645)
- Part199.Rotation = Vector3.new(-180, 0, -180)
- Part199.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part199.Size = Vector3.new(6, 1.20000005, 6)
- Part199.BottomSurface = Enum.SurfaceType.Weld
- Part199.BrickColor = BrickColor.new("Medium green")
- Part199.TopSurface = Enum.SurfaceType.Smooth
- Part199.brickColor = BrickColor.new("Medium green")
- Decal200.Parent = Part199
- Decal200.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal200.Face = Enum.NormalId.Top
- Model201.Parent = Model0
- Model202.Parent = Model201
- Model203.Name = "Zombie"
- Model203.Parent = Model202
- Model203.PrimaryPart = Part204
- Part204.Name = "Head"
- Part204.Parent = Model203
- Part204.CFrame = CFrame.new(126.591461, 6.10000277, 101.486458, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part204.Orientation = Vector3.new(0, 90, 0)
- Part204.Position = Vector3.new(126.591461, 6.10000277, 101.486458)
- Part204.Rotation = Vector3.new(0, 90, 0)
- Part204.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part204.Size = Vector3.new(2, 1, 1)
- Part204.BrickColor = BrickColor.new("Medium green")
- Part204.TopSurface = Enum.SurfaceType.Smooth
- Part204.brickColor = BrickColor.new("Medium green")
- Part204.FormFactor = Enum.FormFactor.Symmetric
- Part204.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh205.Parent = Part204
- SpecialMesh205.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal206.Name = "face"
- Decal206.Parent = Part204
- Part207.Name = "Torso"
- Part207.Parent = Model203
- Part207.CFrame = CFrame.new(126.591461, 4.60000277, 101.486458, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part207.Orientation = Vector3.new(0, 90, 0)
- Part207.Position = Vector3.new(126.591461, 4.60000277, 101.486458)
- Part207.Rotation = Vector3.new(0, 90, 0)
- Part207.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part207.Size = Vector3.new(2, 2, 1)
- Part207.BrickColor = BrickColor.new("Reddish brown")
- Part207.LeftParamA = 0
- Part207.LeftParamB = 0
- Part207.LeftSurface = Enum.SurfaceType.Weld
- Part207.RightParamA = 0
- Part207.RightParamB = 0
- Part207.RightSurface = Enum.SurfaceType.Weld
- Part207.brickColor = BrickColor.new("Reddish brown")
- Part207.FormFactor = Enum.FormFactor.Symmetric
- Part207.formFactor = Enum.FormFactor.Symmetric
- Part208.Name = "Left Leg"
- Part208.Parent = Model203
- Part208.CFrame = CFrame.new(126.591461, 2.60000181, 101.986458, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part208.Orientation = Vector3.new(0, 90, 0)
- Part208.Position = Vector3.new(126.591461, 2.60000181, 101.986458)
- Part208.Rotation = Vector3.new(0, 90, 0)
- Part208.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part208.Size = Vector3.new(1, 2, 1)
- Part208.BottomSurface = Enum.SurfaceType.Smooth
- Part208.BrickColor = BrickColor.new("Reddish brown")
- Part208.CanCollide = false
- Part208.brickColor = BrickColor.new("Reddish brown")
- Part208.FormFactor = Enum.FormFactor.Symmetric
- Part208.formFactor = Enum.FormFactor.Symmetric
- Part209.Name = "Right Leg"
- Part209.Parent = Model203
- Part209.CFrame = CFrame.new(126.591461, 2.60000181, 100.986458, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part209.Orientation = Vector3.new(0, 90, 0)
- Part209.Position = Vector3.new(126.591461, 2.60000181, 100.986458)
- Part209.Rotation = Vector3.new(0, 90, 0)
- Part209.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part209.Size = Vector3.new(1, 2, 1)
- Part209.BottomSurface = Enum.SurfaceType.Smooth
- Part209.BrickColor = BrickColor.new("Reddish brown")
- Part209.CanCollide = false
- Part209.brickColor = BrickColor.new("Reddish brown")
- Part209.FormFactor = Enum.FormFactor.Symmetric
- Part209.formFactor = Enum.FormFactor.Symmetric
- Humanoid210.Parent = Model203
- Humanoid210.LeftLeg = Part208
- Humanoid210.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid210.RightLeg = Part209
- Humanoid210.Torso = Part207
- Part211.Name = "zarm"
- Part211.Parent = Model203
- Part211.CFrame = CFrame.new(126.091461, 5.10000277, 102.986458, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part211.Orientation = Vector3.new(0, 180, 0)
- Part211.Position = Vector3.new(126.091461, 5.10000277, 102.986458)
- Part211.Rotation = Vector3.new(-180, 0, -180)
- Part211.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part211.Size = Vector3.new(2, 1, 1)
- Part211.BottomSurface = Enum.SurfaceType.Smooth
- Part211.BrickColor = BrickColor.new("Medium green")
- Part211.TopSurface = Enum.SurfaceType.Smooth
- Part211.brickColor = BrickColor.new("Medium green")
- Part211.FormFactor = Enum.FormFactor.Symmetric
- Part211.formFactor = Enum.FormFactor.Symmetric
- Script212.Parent = Part211
- table.insert(cors,sandbox(Script212,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part213.Name = "zarm"
- Part213.Parent = Model203
- Part213.CFrame = CFrame.new(126.091461, 5.10000277, 99.9864578, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part213.Orientation = Vector3.new(0, 180, 0)
- Part213.Position = Vector3.new(126.091461, 5.10000277, 99.9864578)
- Part213.Rotation = Vector3.new(-180, 0, -180)
- Part213.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part213.Size = Vector3.new(2, 1, 1)
- Part213.BottomSurface = Enum.SurfaceType.Smooth
- Part213.BrickColor = BrickColor.new("Medium green")
- Part213.TopSurface = Enum.SurfaceType.Smooth
- Part213.brickColor = BrickColor.new("Medium green")
- Part213.FormFactor = Enum.FormFactor.Symmetric
- Part213.formFactor = Enum.FormFactor.Symmetric
- Script214.Parent = Part213
- table.insert(cors,sandbox(Script214,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue215.Name = "IsNZ"
- ObjectValue215.Parent = Model203
- IntValue216.Name = "Mode"
- IntValue216.Parent = Model203
- Script217.Parent = Model203
- table.insert(cors,sandbox(Script217,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script218.Name = "Health"
- Script218.Parent = Model203
- table.insert(cors,sandbox(Script218,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script219.Name = "Respawn"
- Script219.Parent = Model203
- table.insert(cors,sandbox(Script219,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part220.Name = "Spawn Location"
- Part220.Parent = Model202
- Part220.CFrame = CFrame.new(126.113548, 0.603018999, 101.491455, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part220.Orientation = Vector3.new(0, 180, 0)
- Part220.Position = Vector3.new(126.113548, 0.603018999, 101.491455)
- Part220.Rotation = Vector3.new(-180, 0, -180)
- Part220.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part220.Size = Vector3.new(6, 1.20000005, 6)
- Part220.BottomSurface = Enum.SurfaceType.Weld
- Part220.BrickColor = BrickColor.new("Medium green")
- Part220.TopSurface = Enum.SurfaceType.Smooth
- Part220.brickColor = BrickColor.new("Medium green")
- Decal221.Parent = Part220
- Decal221.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal221.Face = Enum.NormalId.Top
- Model222.Parent = Model201
- Model223.Name = "Zombie"
- Model223.Parent = Model222
- Model223.PrimaryPart = Part224
- Part224.Name = "Head"
- Part224.Parent = Model223
- Part224.CFrame = CFrame.new(126.591461, 6.10000277, 95.4864502, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part224.Orientation = Vector3.new(0, 90, 0)
- Part224.Position = Vector3.new(126.591461, 6.10000277, 95.4864502)
- Part224.Rotation = Vector3.new(0, 90, 0)
- Part224.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part224.Size = Vector3.new(2, 1, 1)
- Part224.BrickColor = BrickColor.new("Medium green")
- Part224.TopSurface = Enum.SurfaceType.Smooth
- Part224.brickColor = BrickColor.new("Medium green")
- Part224.FormFactor = Enum.FormFactor.Symmetric
- Part224.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh225.Parent = Part224
- SpecialMesh225.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal226.Name = "face"
- Decal226.Parent = Part224
- Part227.Name = "Torso"
- Part227.Parent = Model223
- Part227.CFrame = CFrame.new(126.591461, 4.60000277, 95.4864502, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part227.Orientation = Vector3.new(0, 90, 0)
- Part227.Position = Vector3.new(126.591461, 4.60000277, 95.4864502)
- Part227.Rotation = Vector3.new(0, 90, 0)
- Part227.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part227.Size = Vector3.new(2, 2, 1)
- Part227.BrickColor = BrickColor.new("Reddish brown")
- Part227.LeftParamA = 0
- Part227.LeftParamB = 0
- Part227.LeftSurface = Enum.SurfaceType.Weld
- Part227.RightParamA = 0
- Part227.RightParamB = 0
- Part227.RightSurface = Enum.SurfaceType.Weld
- Part227.brickColor = BrickColor.new("Reddish brown")
- Part227.FormFactor = Enum.FormFactor.Symmetric
- Part227.formFactor = Enum.FormFactor.Symmetric
- Part228.Name = "Left Leg"
- Part228.Parent = Model223
- Part228.CFrame = CFrame.new(126.591461, 2.60000181, 95.9864502, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part228.Orientation = Vector3.new(0, 90, 0)
- Part228.Position = Vector3.new(126.591461, 2.60000181, 95.9864502)
- Part228.Rotation = Vector3.new(0, 90, 0)
- Part228.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part228.Size = Vector3.new(1, 2, 1)
- Part228.BottomSurface = Enum.SurfaceType.Smooth
- Part228.BrickColor = BrickColor.new("Reddish brown")
- Part228.CanCollide = false
- Part228.brickColor = BrickColor.new("Reddish brown")
- Part228.FormFactor = Enum.FormFactor.Symmetric
- Part228.formFactor = Enum.FormFactor.Symmetric
- Part229.Name = "Right Leg"
- Part229.Parent = Model223
- Part229.CFrame = CFrame.new(126.591461, 2.60000181, 94.9864502, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part229.Orientation = Vector3.new(0, 90, 0)
- Part229.Position = Vector3.new(126.591461, 2.60000181, 94.9864502)
- Part229.Rotation = Vector3.new(0, 90, 0)
- Part229.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part229.Size = Vector3.new(1, 2, 1)
- Part229.BottomSurface = Enum.SurfaceType.Smooth
- Part229.BrickColor = BrickColor.new("Reddish brown")
- Part229.CanCollide = false
- Part229.brickColor = BrickColor.new("Reddish brown")
- Part229.FormFactor = Enum.FormFactor.Symmetric
- Part229.formFactor = Enum.FormFactor.Symmetric
- Humanoid230.Parent = Model223
- Humanoid230.LeftLeg = Part228
- Humanoid230.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid230.RightLeg = Part229
- Humanoid230.Torso = Part227
- Part231.Name = "zarm"
- Part231.Parent = Model223
- Part231.CFrame = CFrame.new(126.091461, 5.10000277, 96.9864502, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part231.Orientation = Vector3.new(0, 180, 0)
- Part231.Position = Vector3.new(126.091461, 5.10000277, 96.9864502)
- Part231.Rotation = Vector3.new(-180, 0, -180)
- Part231.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part231.Size = Vector3.new(2, 1, 1)
- Part231.BottomSurface = Enum.SurfaceType.Smooth
- Part231.BrickColor = BrickColor.new("Medium green")
- Part231.TopSurface = Enum.SurfaceType.Smooth
- Part231.brickColor = BrickColor.new("Medium green")
- Part231.FormFactor = Enum.FormFactor.Symmetric
- Part231.formFactor = Enum.FormFactor.Symmetric
- Script232.Parent = Part231
- table.insert(cors,sandbox(Script232,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part233.Name = "zarm"
- Part233.Parent = Model223
- Part233.CFrame = CFrame.new(126.091461, 5.10000277, 93.9864502, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part233.Orientation = Vector3.new(0, 180, 0)
- Part233.Position = Vector3.new(126.091461, 5.10000277, 93.9864502)
- Part233.Rotation = Vector3.new(-180, 0, -180)
- Part233.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part233.Size = Vector3.new(2, 1, 1)
- Part233.BottomSurface = Enum.SurfaceType.Smooth
- Part233.BrickColor = BrickColor.new("Medium green")
- Part233.TopSurface = Enum.SurfaceType.Smooth
- Part233.brickColor = BrickColor.new("Medium green")
- Part233.FormFactor = Enum.FormFactor.Symmetric
- Part233.formFactor = Enum.FormFactor.Symmetric
- Script234.Parent = Part233
- table.insert(cors,sandbox(Script234,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue235.Name = "IsNZ"
- ObjectValue235.Parent = Model223
- IntValue236.Name = "Mode"
- IntValue236.Parent = Model223
- Script237.Parent = Model223
- table.insert(cors,sandbox(Script237,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script238.Name = "Health"
- Script238.Parent = Model223
- table.insert(cors,sandbox(Script238,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script239.Name = "Respawn"
- Script239.Parent = Model223
- table.insert(cors,sandbox(Script239,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part240.Name = "Spawn Location"
- Part240.Parent = Model222
- Part240.CFrame = CFrame.new(126.091461, 0.600021005, 95.4864502, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part240.Orientation = Vector3.new(0, 180, 0)
- Part240.Position = Vector3.new(126.091461, 0.600021005, 95.4864502)
- Part240.Rotation = Vector3.new(-180, 0, -180)
- Part240.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part240.Size = Vector3.new(6, 1.20000005, 6)
- Part240.BottomSurface = Enum.SurfaceType.Weld
- Part240.BrickColor = BrickColor.new("Medium green")
- Part240.TopSurface = Enum.SurfaceType.Smooth
- Part240.brickColor = BrickColor.new("Medium green")
- Decal241.Parent = Part240
- Decal241.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal241.Face = Enum.NormalId.Top
- Model242.Parent = Model201
- Model243.Name = "Zombie"
- Model243.Parent = Model242
- Model243.PrimaryPart = Part244
- Part244.Name = "Head"
- Part244.Parent = Model243
- Part244.CFrame = CFrame.new(126.591461, 6.10000277, 119.486465, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part244.Orientation = Vector3.new(0, 90, 0)
- Part244.Position = Vector3.new(126.591461, 6.10000277, 119.486465)
- Part244.Rotation = Vector3.new(0, 90, 0)
- Part244.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part244.Size = Vector3.new(2, 1, 1)
- Part244.BrickColor = BrickColor.new("Medium green")
- Part244.TopSurface = Enum.SurfaceType.Smooth
- Part244.brickColor = BrickColor.new("Medium green")
- Part244.FormFactor = Enum.FormFactor.Symmetric
- Part244.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh245.Parent = Part244
- SpecialMesh245.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal246.Name = "face"
- Decal246.Parent = Part244
- Part247.Name = "Torso"
- Part247.Parent = Model243
- Part247.CFrame = CFrame.new(126.591461, 4.60000277, 119.486465, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part247.Orientation = Vector3.new(0, 90, 0)
- Part247.Position = Vector3.new(126.591461, 4.60000277, 119.486465)
- Part247.Rotation = Vector3.new(0, 90, 0)
- Part247.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part247.Size = Vector3.new(2, 2, 1)
- Part247.BrickColor = BrickColor.new("Reddish brown")
- Part247.LeftParamA = 0
- Part247.LeftParamB = 0
- Part247.LeftSurface = Enum.SurfaceType.Weld
- Part247.RightParamA = 0
- Part247.RightParamB = 0
- Part247.RightSurface = Enum.SurfaceType.Weld
- Part247.brickColor = BrickColor.new("Reddish brown")
- Part247.FormFactor = Enum.FormFactor.Symmetric
- Part247.formFactor = Enum.FormFactor.Symmetric
- Part248.Name = "Left Leg"
- Part248.Parent = Model243
- Part248.CFrame = CFrame.new(126.591461, 2.60000181, 119.986465, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part248.Orientation = Vector3.new(0, 90, 0)
- Part248.Position = Vector3.new(126.591461, 2.60000181, 119.986465)
- Part248.Rotation = Vector3.new(0, 90, 0)
- Part248.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part248.Size = Vector3.new(1, 2, 1)
- Part248.BottomSurface = Enum.SurfaceType.Smooth
- Part248.BrickColor = BrickColor.new("Reddish brown")
- Part248.CanCollide = false
- Part248.brickColor = BrickColor.new("Reddish brown")
- Part248.FormFactor = Enum.FormFactor.Symmetric
- Part248.formFactor = Enum.FormFactor.Symmetric
- Part249.Name = "Right Leg"
- Part249.Parent = Model243
- Part249.CFrame = CFrame.new(126.591461, 2.60000181, 118.986465, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part249.Orientation = Vector3.new(0, 90, 0)
- Part249.Position = Vector3.new(126.591461, 2.60000181, 118.986465)
- Part249.Rotation = Vector3.new(0, 90, 0)
- Part249.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part249.Size = Vector3.new(1, 2, 1)
- Part249.BottomSurface = Enum.SurfaceType.Smooth
- Part249.BrickColor = BrickColor.new("Reddish brown")
- Part249.CanCollide = false
- Part249.brickColor = BrickColor.new("Reddish brown")
- Part249.FormFactor = Enum.FormFactor.Symmetric
- Part249.formFactor = Enum.FormFactor.Symmetric
- Humanoid250.Parent = Model243
- Humanoid250.LeftLeg = Part248
- Humanoid250.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid250.RightLeg = Part249
- Humanoid250.Torso = Part247
- Part251.Name = "zarm"
- Part251.Parent = Model243
- Part251.CFrame = CFrame.new(126.091461, 5.10000277, 120.986465, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part251.Orientation = Vector3.new(0, 180, 0)
- Part251.Position = Vector3.new(126.091461, 5.10000277, 120.986465)
- Part251.Rotation = Vector3.new(-180, 0, -180)
- Part251.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part251.Size = Vector3.new(2, 1, 1)
- Part251.BottomSurface = Enum.SurfaceType.Smooth
- Part251.BrickColor = BrickColor.new("Medium green")
- Part251.TopSurface = Enum.SurfaceType.Smooth
- Part251.brickColor = BrickColor.new("Medium green")
- Part251.FormFactor = Enum.FormFactor.Symmetric
- Part251.formFactor = Enum.FormFactor.Symmetric
- Script252.Parent = Part251
- table.insert(cors,sandbox(Script252,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part253.Name = "zarm"
- Part253.Parent = Model243
- Part253.CFrame = CFrame.new(126.091461, 5.10000277, 117.986465, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part253.Orientation = Vector3.new(0, 180, 0)
- Part253.Position = Vector3.new(126.091461, 5.10000277, 117.986465)
- Part253.Rotation = Vector3.new(-180, 0, -180)
- Part253.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part253.Size = Vector3.new(2, 1, 1)
- Part253.BottomSurface = Enum.SurfaceType.Smooth
- Part253.BrickColor = BrickColor.new("Medium green")
- Part253.TopSurface = Enum.SurfaceType.Smooth
- Part253.brickColor = BrickColor.new("Medium green")
- Part253.FormFactor = Enum.FormFactor.Symmetric
- Part253.formFactor = Enum.FormFactor.Symmetric
- Script254.Parent = Part253
- table.insert(cors,sandbox(Script254,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue255.Name = "IsNZ"
- ObjectValue255.Parent = Model243
- IntValue256.Name = "Mode"
- IntValue256.Parent = Model243
- Script257.Parent = Model243
- table.insert(cors,sandbox(Script257,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script258.Name = "Health"
- Script258.Parent = Model243
- table.insert(cors,sandbox(Script258,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script259.Name = "Respawn"
- Script259.Parent = Model243
- table.insert(cors,sandbox(Script259,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part260.Name = "Spawn Location"
- Part260.Parent = Model242
- Part260.CFrame = CFrame.new(126.113548, 0.603018999, 119.491455, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part260.Orientation = Vector3.new(0, 180, 0)
- Part260.Position = Vector3.new(126.113548, 0.603018999, 119.491455)
- Part260.Rotation = Vector3.new(-180, 0, -180)
- Part260.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part260.Size = Vector3.new(6, 1.20000005, 6)
- Part260.BottomSurface = Enum.SurfaceType.Weld
- Part260.BrickColor = BrickColor.new("Medium green")
- Part260.TopSurface = Enum.SurfaceType.Smooth
- Part260.brickColor = BrickColor.new("Medium green")
- Decal261.Parent = Part260
- Decal261.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal261.Face = Enum.NormalId.Top
- Model262.Parent = Model201
- Model263.Name = "Zombie"
- Model263.Parent = Model262
- Model263.PrimaryPart = Part264
- Part264.Name = "Head"
- Part264.Parent = Model263
- Part264.CFrame = CFrame.new(126.608551, 6.10000277, 107.513443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part264.Orientation = Vector3.new(0, 90, 0)
- Part264.Position = Vector3.new(126.608551, 6.10000277, 107.513443)
- Part264.Rotation = Vector3.new(0, 90, 0)
- Part264.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part264.Velocity = Vector3.new(3.64787943e-20, 0.00686328812, 3.64330182e-20)
- Part264.Size = Vector3.new(2, 1, 1)
- Part264.BrickColor = BrickColor.new("Medium green")
- Part264.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part264.TopSurface = Enum.SurfaceType.Smooth
- Part264.brickColor = BrickColor.new("Medium green")
- Part264.FormFactor = Enum.FormFactor.Symmetric
- Part264.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh265.Parent = Part264
- SpecialMesh265.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal266.Name = "face"
- Decal266.Parent = Part264
- Part267.Name = "Torso"
- Part267.Parent = Model263
- Part267.CFrame = CFrame.new(126.608551, 4.60000277, 107.513443, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part267.Orientation = Vector3.new(0, 90, 0)
- Part267.Position = Vector3.new(126.608551, 4.60000277, 107.513443)
- Part267.Rotation = Vector3.new(0, 90, 0)
- Part267.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part267.Velocity = Vector3.new(3.64798347e-20, 0.00686328812, 3.64324075e-20)
- Part267.Size = Vector3.new(2, 2, 1)
- Part267.BrickColor = BrickColor.new("Reddish brown")
- Part267.LeftParamA = 0
- Part267.LeftParamB = 0
- Part267.LeftSurface = Enum.SurfaceType.Weld
- Part267.RightParamA = 0
- Part267.RightParamB = 0
- Part267.RightSurface = Enum.SurfaceType.Weld
- Part267.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part267.brickColor = BrickColor.new("Reddish brown")
- Part267.FormFactor = Enum.FormFactor.Symmetric
- Part267.formFactor = Enum.FormFactor.Symmetric
- Part268.Name = "Left Leg"
- Part268.Parent = Model263
- Part268.CFrame = CFrame.new(126.608551, 2.60000181, 108.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part268.Orientation = Vector3.new(0, 90, 0)
- Part268.Position = Vector3.new(126.608551, 2.60000181, 108.013443)
- Part268.Rotation = Vector3.new(0, 90, 0)
- Part268.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part268.Velocity = Vector3.new(3.66480722e-20, 0.00686328812, 3.64315933e-20)
- Part268.Size = Vector3.new(1, 2, 1)
- Part268.BottomSurface = Enum.SurfaceType.Smooth
- Part268.BrickColor = BrickColor.new("Reddish brown")
- Part268.CanCollide = false
- Part268.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part268.brickColor = BrickColor.new("Reddish brown")
- Part268.FormFactor = Enum.FormFactor.Symmetric
- Part268.formFactor = Enum.FormFactor.Symmetric
- Part269.Name = "Right Leg"
- Part269.Parent = Model263
- Part269.CFrame = CFrame.new(126.608551, 2.60000181, 107.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part269.Orientation = Vector3.new(0, 90, 0)
- Part269.Position = Vector3.new(126.608551, 2.60000181, 107.013443)
- Part269.Rotation = Vector3.new(0, 90, 0)
- Part269.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part269.Velocity = Vector3.new(3.6314376e-20, 0.00686328812, 3.64315933e-20)
- Part269.Size = Vector3.new(1, 2, 1)
- Part269.BottomSurface = Enum.SurfaceType.Smooth
- Part269.BrickColor = BrickColor.new("Reddish brown")
- Part269.CanCollide = false
- Part269.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part269.brickColor = BrickColor.new("Reddish brown")
- Part269.FormFactor = Enum.FormFactor.Symmetric
- Part269.formFactor = Enum.FormFactor.Symmetric
- Humanoid270.Parent = Model263
- Humanoid270.LeftLeg = Part268
- Humanoid270.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid270.RightLeg = Part269
- Humanoid270.Torso = Part267
- Part271.Name = "zarm"
- Part271.Parent = Model263
- Part271.CFrame = CFrame.new(126.108551, 5.10000277, 109.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part271.Orientation = Vector3.new(0, 180, 0)
- Part271.Position = Vector3.new(126.108551, 5.10000277, 109.013443)
- Part271.Rotation = Vector3.new(-180, 0, -180)
- Part271.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part271.Velocity = Vector3.new(3.69800334e-20, 0.00686328812, 3.65994592e-20)
- Part271.Size = Vector3.new(2, 1, 1)
- Part271.BottomSurface = Enum.SurfaceType.Smooth
- Part271.BrickColor = BrickColor.new("Medium green")
- Part271.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part271.TopSurface = Enum.SurfaceType.Smooth
- Part271.brickColor = BrickColor.new("Medium green")
- Part271.FormFactor = Enum.FormFactor.Symmetric
- Part271.formFactor = Enum.FormFactor.Symmetric
- Script272.Parent = Part271
- table.insert(cors,sandbox(Script272,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part273.Name = "zarm"
- Part273.Parent = Model263
- Part273.CFrame = CFrame.new(126.108551, 5.10000277, 106.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part273.Orientation = Vector3.new(0, 180, 0)
- Part273.Position = Vector3.new(126.108551, 5.10000277, 106.013443)
- Part273.Rotation = Vector3.new(-180, 0, -180)
- Part273.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part273.Velocity = Vector3.new(3.59789445e-20, 0.00686328812, 3.65994592e-20)
- Part273.Size = Vector3.new(2, 1, 1)
- Part273.BottomSurface = Enum.SurfaceType.Smooth
- Part273.BrickColor = BrickColor.new("Medium green")
- Part273.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part273.TopSurface = Enum.SurfaceType.Smooth
- Part273.brickColor = BrickColor.new("Medium green")
- Part273.FormFactor = Enum.FormFactor.Symmetric
- Part273.formFactor = Enum.FormFactor.Symmetric
- Script274.Parent = Part273
- table.insert(cors,sandbox(Script274,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue275.Name = "IsNZ"
- ObjectValue275.Parent = Model263
- IntValue276.Name = "Mode"
- IntValue276.Parent = Model263
- Script277.Parent = Model263
- table.insert(cors,sandbox(Script277,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script278.Name = "Health"
- Script278.Parent = Model263
- table.insert(cors,sandbox(Script278,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script279.Name = "Respawn"
- Script279.Parent = Model263
- table.insert(cors,sandbox(Script279,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part280.Name = "Spawn Location"
- Part280.Parent = Model262
- Part280.CFrame = CFrame.new(126.113548, 0.603018999, 107.491463, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part280.Orientation = Vector3.new(0, 180, 0)
- Part280.Position = Vector3.new(126.113548, 0.603018999, 107.491463)
- Part280.Rotation = Vector3.new(-180, 0, -180)
- Part280.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part280.Size = Vector3.new(6, 1.20000005, 6)
- Part280.BottomSurface = Enum.SurfaceType.Weld
- Part280.BrickColor = BrickColor.new("Medium green")
- Part280.TopSurface = Enum.SurfaceType.Smooth
- Part280.brickColor = BrickColor.new("Medium green")
- Decal281.Parent = Part280
- Decal281.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal281.Face = Enum.NormalId.Top
- Model282.Parent = Model201
- Model283.Name = "Zombie"
- Model283.Parent = Model282
- Model283.PrimaryPart = Part284
- Part284.Name = "Head"
- Part284.Parent = Model283
- Part284.CFrame = CFrame.new(126.608551, 6.10000277, 113.513443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part284.Orientation = Vector3.new(0, 90, 0)
- Part284.Position = Vector3.new(126.608551, 6.10000277, 113.513443)
- Part284.Rotation = Vector3.new(0, 90, 0)
- Part284.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part284.Velocity = Vector3.new(3.64787943e-20, 0.00686328812, 3.64330182e-20)
- Part284.Size = Vector3.new(2, 1, 1)
- Part284.BrickColor = BrickColor.new("Medium green")
- Part284.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part284.TopSurface = Enum.SurfaceType.Smooth
- Part284.brickColor = BrickColor.new("Medium green")
- Part284.FormFactor = Enum.FormFactor.Symmetric
- Part284.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh285.Parent = Part284
- SpecialMesh285.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal286.Name = "face"
- Decal286.Parent = Part284
- Part287.Name = "Torso"
- Part287.Parent = Model283
- Part287.CFrame = CFrame.new(126.608551, 4.60000277, 113.513443, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part287.Orientation = Vector3.new(0, 90, 0)
- Part287.Position = Vector3.new(126.608551, 4.60000277, 113.513443)
- Part287.Rotation = Vector3.new(0, 90, 0)
- Part287.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part287.Velocity = Vector3.new(3.64798347e-20, 0.00686328812, 3.64324075e-20)
- Part287.Size = Vector3.new(2, 2, 1)
- Part287.BrickColor = BrickColor.new("Reddish brown")
- Part287.LeftParamA = 0
- Part287.LeftParamB = 0
- Part287.LeftSurface = Enum.SurfaceType.Weld
- Part287.RightParamA = 0
- Part287.RightParamB = 0
- Part287.RightSurface = Enum.SurfaceType.Weld
- Part287.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part287.brickColor = BrickColor.new("Reddish brown")
- Part287.FormFactor = Enum.FormFactor.Symmetric
- Part287.formFactor = Enum.FormFactor.Symmetric
- Part288.Name = "Left Leg"
- Part288.Parent = Model283
- Part288.CFrame = CFrame.new(126.608551, 2.60000181, 114.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part288.Orientation = Vector3.new(0, 90, 0)
- Part288.Position = Vector3.new(126.608551, 2.60000181, 114.013443)
- Part288.Rotation = Vector3.new(0, 90, 0)
- Part288.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part288.Velocity = Vector3.new(3.66480722e-20, 0.00686328812, 3.64315933e-20)
- Part288.Size = Vector3.new(1, 2, 1)
- Part288.BottomSurface = Enum.SurfaceType.Smooth
- Part288.BrickColor = BrickColor.new("Reddish brown")
- Part288.CanCollide = false
- Part288.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part288.brickColor = BrickColor.new("Reddish brown")
- Part288.FormFactor = Enum.FormFactor.Symmetric
- Part288.formFactor = Enum.FormFactor.Symmetric
- Part289.Name = "Right Leg"
- Part289.Parent = Model283
- Part289.CFrame = CFrame.new(126.608551, 2.60000181, 113.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part289.Orientation = Vector3.new(0, 90, 0)
- Part289.Position = Vector3.new(126.608551, 2.60000181, 113.013443)
- Part289.Rotation = Vector3.new(0, 90, 0)
- Part289.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part289.Velocity = Vector3.new(3.6314376e-20, 0.00686328812, 3.64315933e-20)
- Part289.Size = Vector3.new(1, 2, 1)
- Part289.BottomSurface = Enum.SurfaceType.Smooth
- Part289.BrickColor = BrickColor.new("Reddish brown")
- Part289.CanCollide = false
- Part289.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part289.brickColor = BrickColor.new("Reddish brown")
- Part289.FormFactor = Enum.FormFactor.Symmetric
- Part289.formFactor = Enum.FormFactor.Symmetric
- Humanoid290.Parent = Model283
- Humanoid290.LeftLeg = Part288
- Humanoid290.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid290.RightLeg = Part289
- Humanoid290.Torso = Part287
- Part291.Name = "zarm"
- Part291.Parent = Model283
- Part291.CFrame = CFrame.new(126.108551, 5.10000277, 115.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part291.Orientation = Vector3.new(0, 180, 0)
- Part291.Position = Vector3.new(126.108551, 5.10000277, 115.013443)
- Part291.Rotation = Vector3.new(-180, 0, -180)
- Part291.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part291.Velocity = Vector3.new(3.69800334e-20, 0.00686328812, 3.65994592e-20)
- Part291.Size = Vector3.new(2, 1, 1)
- Part291.BottomSurface = Enum.SurfaceType.Smooth
- Part291.BrickColor = BrickColor.new("Medium green")
- Part291.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part291.TopSurface = Enum.SurfaceType.Smooth
- Part291.brickColor = BrickColor.new("Medium green")
- Part291.FormFactor = Enum.FormFactor.Symmetric
- Part291.formFactor = Enum.FormFactor.Symmetric
- Script292.Parent = Part291
- table.insert(cors,sandbox(Script292,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part293.Name = "zarm"
- Part293.Parent = Model283
- Part293.CFrame = CFrame.new(126.108551, 5.10000277, 112.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part293.Orientation = Vector3.new(0, 180, 0)
- Part293.Position = Vector3.new(126.108551, 5.10000277, 112.013443)
- Part293.Rotation = Vector3.new(-180, 0, -180)
- Part293.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part293.Velocity = Vector3.new(3.59789445e-20, 0.00686328812, 3.65994592e-20)
- Part293.Size = Vector3.new(2, 1, 1)
- Part293.BottomSurface = Enum.SurfaceType.Smooth
- Part293.BrickColor = BrickColor.new("Medium green")
- Part293.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part293.TopSurface = Enum.SurfaceType.Smooth
- Part293.brickColor = BrickColor.new("Medium green")
- Part293.FormFactor = Enum.FormFactor.Symmetric
- Part293.formFactor = Enum.FormFactor.Symmetric
- Script294.Parent = Part293
- table.insert(cors,sandbox(Script294,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue295.Name = "IsNZ"
- ObjectValue295.Parent = Model283
- IntValue296.Name = "Mode"
- IntValue296.Parent = Model283
- Script297.Parent = Model283
- table.insert(cors,sandbox(Script297,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script298.Name = "Health"
- Script298.Parent = Model283
- table.insert(cors,sandbox(Script298,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script299.Name = "Respawn"
- Script299.Parent = Model283
- table.insert(cors,sandbox(Script299,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part300.Name = "Spawn Location"
- Part300.Parent = Model282
- Part300.CFrame = CFrame.new(126.113548, 0.603018999, 113.491455, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part300.Orientation = Vector3.new(0, 180, 0)
- Part300.Position = Vector3.new(126.113548, 0.603018999, 113.491455)
- Part300.Rotation = Vector3.new(-180, 0, -180)
- Part300.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part300.Size = Vector3.new(6, 1.20000005, 6)
- Part300.BottomSurface = Enum.SurfaceType.Weld
- Part300.BrickColor = BrickColor.new("Medium green")
- Part300.TopSurface = Enum.SurfaceType.Smooth
- Part300.brickColor = BrickColor.new("Medium green")
- Decal301.Parent = Part300
- Decal301.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal301.Face = Enum.NormalId.Top
- Model302.Parent = Model201
- Model303.Name = "Zombie"
- Model303.Parent = Model302
- Model303.PrimaryPart = Part304
- Part304.Name = "Head"
- Part304.Parent = Model303
- Part304.CFrame = CFrame.new(120.586472, 6.09701204, 95.5084381, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part304.Orientation = Vector3.new(0, 90, 0)
- Part304.Position = Vector3.new(120.586472, 6.09701204, 95.5084381)
- Part304.Rotation = Vector3.new(0, 90, 0)
- Part304.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part304.Velocity = Vector3.new(3.64787943e-20, 0.00686328812, 3.64330182e-20)
- Part304.Size = Vector3.new(2, 1, 1)
- Part304.BrickColor = BrickColor.new("Medium green")
- Part304.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part304.TopSurface = Enum.SurfaceType.Smooth
- Part304.brickColor = BrickColor.new("Medium green")
- Part304.FormFactor = Enum.FormFactor.Symmetric
- Part304.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh305.Parent = Part304
- SpecialMesh305.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal306.Name = "face"
- Decal306.Parent = Part304
- Part307.Name = "Torso"
- Part307.Parent = Model303
- Part307.CFrame = CFrame.new(120.586472, 4.59701204, 95.5084381, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part307.Orientation = Vector3.new(0, 90, 0)
- Part307.Position = Vector3.new(120.586472, 4.59701204, 95.5084381)
- Part307.Rotation = Vector3.new(0, 90, 0)
- Part307.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part307.Velocity = Vector3.new(3.64798347e-20, 0.00686328812, 3.64324075e-20)
- Part307.Size = Vector3.new(2, 2, 1)
- Part307.BrickColor = BrickColor.new("Reddish brown")
- Part307.LeftParamA = 0
- Part307.LeftParamB = 0
- Part307.LeftSurface = Enum.SurfaceType.Weld
- Part307.RightParamA = 0
- Part307.RightParamB = 0
- Part307.RightSurface = Enum.SurfaceType.Weld
- Part307.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part307.brickColor = BrickColor.new("Reddish brown")
- Part307.FormFactor = Enum.FormFactor.Symmetric
- Part307.formFactor = Enum.FormFactor.Symmetric
- Part308.Name = "Left Leg"
- Part308.Parent = Model303
- Part308.CFrame = CFrame.new(120.586472, 2.59701204, 96.0084381, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part308.Orientation = Vector3.new(0, 90, 0)
- Part308.Position = Vector3.new(120.586472, 2.59701204, 96.0084381)
- Part308.Rotation = Vector3.new(0, 90, 0)
- Part308.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part308.Velocity = Vector3.new(3.66480722e-20, 0.00686328812, 3.64315933e-20)
- Part308.Size = Vector3.new(1, 2, 1)
- Part308.BottomSurface = Enum.SurfaceType.Smooth
- Part308.BrickColor = BrickColor.new("Reddish brown")
- Part308.CanCollide = false
- Part308.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part308.brickColor = BrickColor.new("Reddish brown")
- Part308.FormFactor = Enum.FormFactor.Symmetric
- Part308.formFactor = Enum.FormFactor.Symmetric
- Part309.Name = "Right Leg"
- Part309.Parent = Model303
- Part309.CFrame = CFrame.new(120.586472, 2.59701204, 95.0084381, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part309.Orientation = Vector3.new(0, 90, 0)
- Part309.Position = Vector3.new(120.586472, 2.59701204, 95.0084381)
- Part309.Rotation = Vector3.new(0, 90, 0)
- Part309.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part309.Velocity = Vector3.new(3.6314376e-20, 0.00686328812, 3.64315933e-20)
- Part309.Size = Vector3.new(1, 2, 1)
- Part309.BottomSurface = Enum.SurfaceType.Smooth
- Part309.BrickColor = BrickColor.new("Reddish brown")
- Part309.CanCollide = false
- Part309.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part309.brickColor = BrickColor.new("Reddish brown")
- Part309.FormFactor = Enum.FormFactor.Symmetric
- Part309.formFactor = Enum.FormFactor.Symmetric
- Humanoid310.Parent = Model303
- Humanoid310.LeftLeg = Part308
- Humanoid310.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid310.RightLeg = Part309
- Humanoid310.Torso = Part307
- Part311.Name = "zarm"
- Part311.Parent = Model303
- Part311.CFrame = CFrame.new(120.086472, 5.09701204, 97.0084381, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part311.Orientation = Vector3.new(0, 180, 0)
- Part311.Position = Vector3.new(120.086472, 5.09701204, 97.0084381)
- Part311.Rotation = Vector3.new(-180, 0, -180)
- Part311.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part311.Velocity = Vector3.new(3.69800334e-20, 0.00686328812, 3.65994592e-20)
- Part311.Size = Vector3.new(2, 1, 1)
- Part311.BottomSurface = Enum.SurfaceType.Smooth
- Part311.BrickColor = BrickColor.new("Medium green")
- Part311.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part311.TopSurface = Enum.SurfaceType.Smooth
- Part311.brickColor = BrickColor.new("Medium green")
- Part311.FormFactor = Enum.FormFactor.Symmetric
- Part311.formFactor = Enum.FormFactor.Symmetric
- Script312.Parent = Part311
- table.insert(cors,sandbox(Script312,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part313.Name = "zarm"
- Part313.Parent = Model303
- Part313.CFrame = CFrame.new(120.086472, 5.09701204, 94.0084381, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part313.Orientation = Vector3.new(0, 180, 0)
- Part313.Position = Vector3.new(120.086472, 5.09701204, 94.0084381)
- Part313.Rotation = Vector3.new(-180, 0, -180)
- Part313.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part313.Velocity = Vector3.new(3.59789445e-20, 0.00686328812, 3.65994592e-20)
- Part313.Size = Vector3.new(2, 1, 1)
- Part313.BottomSurface = Enum.SurfaceType.Smooth
- Part313.BrickColor = BrickColor.new("Medium green")
- Part313.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part313.TopSurface = Enum.SurfaceType.Smooth
- Part313.brickColor = BrickColor.new("Medium green")
- Part313.FormFactor = Enum.FormFactor.Symmetric
- Part313.formFactor = Enum.FormFactor.Symmetric
- Script314.Parent = Part313
- table.insert(cors,sandbox(Script314,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue315.Name = "IsNZ"
- ObjectValue315.Parent = Model303
- IntValue316.Name = "Mode"
- IntValue316.Parent = Model303
- Script317.Parent = Model303
- table.insert(cors,sandbox(Script317,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script318.Name = "Health"
- Script318.Parent = Model303
- table.insert(cors,sandbox(Script318,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script319.Name = "Respawn"
- Script319.Parent = Model303
- table.insert(cors,sandbox(Script319,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part320.Name = "Spawn Location"
- Part320.Parent = Model302
- Part320.CFrame = CFrame.new(120.091461, 0.600021005, 95.4864502, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part320.Orientation = Vector3.new(0, 180, 0)
- Part320.Position = Vector3.new(120.091461, 0.600021005, 95.4864502)
- Part320.Rotation = Vector3.new(-180, 0, -180)
- Part320.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part320.Size = Vector3.new(6, 1.20000005, 6)
- Part320.BottomSurface = Enum.SurfaceType.Weld
- Part320.BrickColor = BrickColor.new("Medium green")
- Part320.TopSurface = Enum.SurfaceType.Smooth
- Part320.brickColor = BrickColor.new("Medium green")
- Decal321.Parent = Part320
- Decal321.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal321.Face = Enum.NormalId.Top
- Model322.Parent = Model201
- Model323.Name = "Zombie"
- Model323.Parent = Model322
- Model323.PrimaryPart = Part324
- Part324.Name = "Head"
- Part324.Parent = Model323
- Part324.CFrame = CFrame.new(120.586472, 6.09701204, 113.508453, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part324.Orientation = Vector3.new(0, 90, 0)
- Part324.Position = Vector3.new(120.586472, 6.09701204, 113.508453)
- Part324.Rotation = Vector3.new(0, 90, 0)
- Part324.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part324.Velocity = Vector3.new(3.64787943e-20, 0.00686328812, 3.64330182e-20)
- Part324.Size = Vector3.new(2, 1, 1)
- Part324.BrickColor = BrickColor.new("Medium green")
- Part324.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part324.TopSurface = Enum.SurfaceType.Smooth
- Part324.brickColor = BrickColor.new("Medium green")
- Part324.FormFactor = Enum.FormFactor.Symmetric
- Part324.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh325.Parent = Part324
- SpecialMesh325.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal326.Name = "face"
- Decal326.Parent = Part324
- Part327.Name = "Torso"
- Part327.Parent = Model323
- Part327.CFrame = CFrame.new(120.586472, 4.59701204, 113.508453, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part327.Orientation = Vector3.new(0, 90, 0)
- Part327.Position = Vector3.new(120.586472, 4.59701204, 113.508453)
- Part327.Rotation = Vector3.new(0, 90, 0)
- Part327.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part327.Velocity = Vector3.new(3.64798347e-20, 0.00686328812, 3.64324075e-20)
- Part327.Size = Vector3.new(2, 2, 1)
- Part327.BrickColor = BrickColor.new("Reddish brown")
- Part327.LeftParamA = 0
- Part327.LeftParamB = 0
- Part327.LeftSurface = Enum.SurfaceType.Weld
- Part327.RightParamA = 0
- Part327.RightParamB = 0
- Part327.RightSurface = Enum.SurfaceType.Weld
- Part327.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part327.brickColor = BrickColor.new("Reddish brown")
- Part327.FormFactor = Enum.FormFactor.Symmetric
- Part327.formFactor = Enum.FormFactor.Symmetric
- Part328.Name = "Left Leg"
- Part328.Parent = Model323
- Part328.CFrame = CFrame.new(120.586472, 2.59701204, 114.008453, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part328.Orientation = Vector3.new(0, 90, 0)
- Part328.Position = Vector3.new(120.586472, 2.59701204, 114.008453)
- Part328.Rotation = Vector3.new(0, 90, 0)
- Part328.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part328.Velocity = Vector3.new(3.66480722e-20, 0.00686328812, 3.64315933e-20)
- Part328.Size = Vector3.new(1, 2, 1)
- Part328.BottomSurface = Enum.SurfaceType.Smooth
- Part328.BrickColor = BrickColor.new("Reddish brown")
- Part328.CanCollide = false
- Part328.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part328.brickColor = BrickColor.new("Reddish brown")
- Part328.FormFactor = Enum.FormFactor.Symmetric
- Part328.formFactor = Enum.FormFactor.Symmetric
- Part329.Name = "Right Leg"
- Part329.Parent = Model323
- Part329.CFrame = CFrame.new(120.586472, 2.59701204, 113.008453, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part329.Orientation = Vector3.new(0, 90, 0)
- Part329.Position = Vector3.new(120.586472, 2.59701204, 113.008453)
- Part329.Rotation = Vector3.new(0, 90, 0)
- Part329.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part329.Velocity = Vector3.new(3.6314376e-20, 0.00686328812, 3.64315933e-20)
- Part329.Size = Vector3.new(1, 2, 1)
- Part329.BottomSurface = Enum.SurfaceType.Smooth
- Part329.BrickColor = BrickColor.new("Reddish brown")
- Part329.CanCollide = false
- Part329.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part329.brickColor = BrickColor.new("Reddish brown")
- Part329.FormFactor = Enum.FormFactor.Symmetric
- Part329.formFactor = Enum.FormFactor.Symmetric
- Humanoid330.Parent = Model323
- Humanoid330.LeftLeg = Part328
- Humanoid330.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid330.RightLeg = Part329
- Humanoid330.Torso = Part327
- Part331.Name = "zarm"
- Part331.Parent = Model323
- Part331.CFrame = CFrame.new(120.086472, 5.09701204, 115.008453, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part331.Orientation = Vector3.new(0, 180, 0)
- Part331.Position = Vector3.new(120.086472, 5.09701204, 115.008453)
- Part331.Rotation = Vector3.new(-180, 0, -180)
- Part331.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part331.Velocity = Vector3.new(3.69800334e-20, 0.00686328812, 3.65994592e-20)
- Part331.Size = Vector3.new(2, 1, 1)
- Part331.BottomSurface = Enum.SurfaceType.Smooth
- Part331.BrickColor = BrickColor.new("Medium green")
- Part331.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part331.TopSurface = Enum.SurfaceType.Smooth
- Part331.brickColor = BrickColor.new("Medium green")
- Part331.FormFactor = Enum.FormFactor.Symmetric
- Part331.formFactor = Enum.FormFactor.Symmetric
- Script332.Parent = Part331
- table.insert(cors,sandbox(Script332,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part333.Name = "zarm"
- Part333.Parent = Model323
- Part333.CFrame = CFrame.new(120.086472, 5.09701204, 112.008453, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part333.Orientation = Vector3.new(0, 180, 0)
- Part333.Position = Vector3.new(120.086472, 5.09701204, 112.008453)
- Part333.Rotation = Vector3.new(-180, 0, -180)
- Part333.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part333.Velocity = Vector3.new(3.59789445e-20, 0.00686328812, 3.65994592e-20)
- Part333.Size = Vector3.new(2, 1, 1)
- Part333.BottomSurface = Enum.SurfaceType.Smooth
- Part333.BrickColor = BrickColor.new("Medium green")
- Part333.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part333.TopSurface = Enum.SurfaceType.Smooth
- Part333.brickColor = BrickColor.new("Medium green")
- Part333.FormFactor = Enum.FormFactor.Symmetric
- Part333.formFactor = Enum.FormFactor.Symmetric
- Script334.Parent = Part333
- table.insert(cors,sandbox(Script334,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue335.Name = "IsNZ"
- ObjectValue335.Parent = Model323
- IntValue336.Name = "Mode"
- IntValue336.Parent = Model323
- Script337.Parent = Model323
- table.insert(cors,sandbox(Script337,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script338.Name = "Health"
- Script338.Parent = Model323
- table.insert(cors,sandbox(Script338,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script339.Name = "Respawn"
- Script339.Parent = Model323
- table.insert(cors,sandbox(Script339,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part340.Name = "Spawn Location"
- Part340.Parent = Model322
- Part340.CFrame = CFrame.new(120.091461, 0.600021005, 113.48645, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part340.Orientation = Vector3.new(0, 180, 0)
- Part340.Position = Vector3.new(120.091461, 0.600021005, 113.48645)
- Part340.Rotation = Vector3.new(-180, 0, -180)
- Part340.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part340.Size = Vector3.new(6, 1.20000005, 6)
- Part340.BottomSurface = Enum.SurfaceType.Weld
- Part340.BrickColor = BrickColor.new("Medium green")
- Part340.TopSurface = Enum.SurfaceType.Smooth
- Part340.brickColor = BrickColor.new("Medium green")
- Decal341.Parent = Part340
- Decal341.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal341.Face = Enum.NormalId.Top
- Model342.Parent = Model201
- Model343.Name = "Zombie"
- Model343.Parent = Model342
- Model343.PrimaryPart = Part344
- Part344.Name = "Head"
- Part344.Parent = Model343
- Part344.CFrame = CFrame.new(120.591461, 6.10000277, 101.48645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part344.Orientation = Vector3.new(0, 90, 0)
- Part344.Position = Vector3.new(120.591461, 6.10000277, 101.48645)
- Part344.Rotation = Vector3.new(0, 90, 0)
- Part344.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part344.Size = Vector3.new(2, 1, 1)
- Part344.BrickColor = BrickColor.new("Medium green")
- Part344.TopSurface = Enum.SurfaceType.Smooth
- Part344.brickColor = BrickColor.new("Medium green")
- Part344.FormFactor = Enum.FormFactor.Symmetric
- Part344.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh345.Parent = Part344
- SpecialMesh345.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal346.Name = "face"
- Decal346.Parent = Part344
- Part347.Name = "Torso"
- Part347.Parent = Model343
- Part347.CFrame = CFrame.new(120.591461, 4.60000277, 101.48645, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part347.Orientation = Vector3.new(0, 90, 0)
- Part347.Position = Vector3.new(120.591461, 4.60000277, 101.48645)
- Part347.Rotation = Vector3.new(0, 90, 0)
- Part347.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part347.Size = Vector3.new(2, 2, 1)
- Part347.BrickColor = BrickColor.new("Reddish brown")
- Part347.LeftParamA = 0
- Part347.LeftParamB = 0
- Part347.LeftSurface = Enum.SurfaceType.Weld
- Part347.RightParamA = 0
- Part347.RightParamB = 0
- Part347.RightSurface = Enum.SurfaceType.Weld
- Part347.brickColor = BrickColor.new("Reddish brown")
- Part347.FormFactor = Enum.FormFactor.Symmetric
- Part347.formFactor = Enum.FormFactor.Symmetric
- Part348.Name = "Left Leg"
- Part348.Parent = Model343
- Part348.CFrame = CFrame.new(120.591461, 2.60000181, 101.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part348.Orientation = Vector3.new(0, 90, 0)
- Part348.Position = Vector3.new(120.591461, 2.60000181, 101.98645)
- Part348.Rotation = Vector3.new(0, 90, 0)
- Part348.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part348.Size = Vector3.new(1, 2, 1)
- Part348.BottomSurface = Enum.SurfaceType.Smooth
- Part348.BrickColor = BrickColor.new("Reddish brown")
- Part348.CanCollide = false
- Part348.brickColor = BrickColor.new("Reddish brown")
- Part348.FormFactor = Enum.FormFactor.Symmetric
- Part348.formFactor = Enum.FormFactor.Symmetric
- Part349.Name = "Right Leg"
- Part349.Parent = Model343
- Part349.CFrame = CFrame.new(120.591461, 2.60000181, 100.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part349.Orientation = Vector3.new(0, 90, 0)
- Part349.Position = Vector3.new(120.591461, 2.60000181, 100.98645)
- Part349.Rotation = Vector3.new(0, 90, 0)
- Part349.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part349.Size = Vector3.new(1, 2, 1)
- Part349.BottomSurface = Enum.SurfaceType.Smooth
- Part349.BrickColor = BrickColor.new("Reddish brown")
- Part349.CanCollide = false
- Part349.brickColor = BrickColor.new("Reddish brown")
- Part349.FormFactor = Enum.FormFactor.Symmetric
- Part349.formFactor = Enum.FormFactor.Symmetric
- Humanoid350.Parent = Model343
- Humanoid350.LeftLeg = Part348
- Humanoid350.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid350.RightLeg = Part349
- Humanoid350.Torso = Part347
- Part351.Name = "zarm"
- Part351.Parent = Model343
- Part351.CFrame = CFrame.new(120.091461, 5.10000277, 102.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part351.Orientation = Vector3.new(0, 180, 0)
- Part351.Position = Vector3.new(120.091461, 5.10000277, 102.98645)
- Part351.Rotation = Vector3.new(-180, 0, -180)
- Part351.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part351.Size = Vector3.new(2, 1, 1)
- Part351.BottomSurface = Enum.SurfaceType.Smooth
- Part351.BrickColor = BrickColor.new("Medium green")
- Part351.TopSurface = Enum.SurfaceType.Smooth
- Part351.brickColor = BrickColor.new("Medium green")
- Part351.FormFactor = Enum.FormFactor.Symmetric
- Part351.formFactor = Enum.FormFactor.Symmetric
- Script352.Parent = Part351
- table.insert(cors,sandbox(Script352,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part353.Name = "zarm"
- Part353.Parent = Model343
- Part353.CFrame = CFrame.new(120.091461, 5.10000277, 99.9864502, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part353.Orientation = Vector3.new(0, 180, 0)
- Part353.Position = Vector3.new(120.091461, 5.10000277, 99.9864502)
- Part353.Rotation = Vector3.new(-180, 0, -180)
- Part353.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part353.Size = Vector3.new(2, 1, 1)
- Part353.BottomSurface = Enum.SurfaceType.Smooth
- Part353.BrickColor = BrickColor.new("Medium green")
- Part353.TopSurface = Enum.SurfaceType.Smooth
- Part353.brickColor = BrickColor.new("Medium green")
- Part353.FormFactor = Enum.FormFactor.Symmetric
- Part353.formFactor = Enum.FormFactor.Symmetric
- Script354.Parent = Part353
- table.insert(cors,sandbox(Script354,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue355.Name = "IsNZ"
- ObjectValue355.Parent = Model343
- IntValue356.Name = "Mode"
- IntValue356.Parent = Model343
- Script357.Parent = Model343
- table.insert(cors,sandbox(Script357,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script358.Name = "Health"
- Script358.Parent = Model343
- table.insert(cors,sandbox(Script358,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script359.Name = "Respawn"
- Script359.Parent = Model343
- table.insert(cors,sandbox(Script359,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part360.Name = "Spawn Location"
- Part360.Parent = Model342
- Part360.CFrame = CFrame.new(120.091461, 0.600021005, 101.48645, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part360.Orientation = Vector3.new(0, 180, 0)
- Part360.Position = Vector3.new(120.091461, 0.600021005, 101.48645)
- Part360.Rotation = Vector3.new(-180, 0, -180)
- Part360.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part360.Size = Vector3.new(6, 1.20000005, 6)
- Part360.BottomSurface = Enum.SurfaceType.Weld
- Part360.BrickColor = BrickColor.new("Medium green")
- Part360.TopSurface = Enum.SurfaceType.Smooth
- Part360.brickColor = BrickColor.new("Medium green")
- Decal361.Parent = Part360
- Decal361.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal361.Face = Enum.NormalId.Top
- Model362.Parent = Model201
- Model363.Name = "Zombie"
- Model363.Parent = Model362
- Model363.PrimaryPart = Part364
- Part364.Name = "Head"
- Part364.Parent = Model363
- Part364.CFrame = CFrame.new(120.608551, 6.10000277, 107.513443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part364.Orientation = Vector3.new(0, 90, 0)
- Part364.Position = Vector3.new(120.608551, 6.10000277, 107.513443)
- Part364.Rotation = Vector3.new(0, 90, 0)
- Part364.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part364.Velocity = Vector3.new(3.64787943e-20, 0.00686328812, 3.64330182e-20)
- Part364.Size = Vector3.new(2, 1, 1)
- Part364.BrickColor = BrickColor.new("Medium green")
- Part364.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part364.TopSurface = Enum.SurfaceType.Smooth
- Part364.brickColor = BrickColor.new("Medium green")
- Part364.FormFactor = Enum.FormFactor.Symmetric
- Part364.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh365.Parent = Part364
- SpecialMesh365.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal366.Name = "face"
- Decal366.Parent = Part364
- Part367.Name = "Torso"
- Part367.Parent = Model363
- Part367.CFrame = CFrame.new(120.608551, 4.60000277, 107.513443, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part367.Orientation = Vector3.new(0, 90, 0)
- Part367.Position = Vector3.new(120.608551, 4.60000277, 107.513443)
- Part367.Rotation = Vector3.new(0, 90, 0)
- Part367.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part367.Velocity = Vector3.new(3.64798347e-20, 0.00686328812, 3.64324075e-20)
- Part367.Size = Vector3.new(2, 2, 1)
- Part367.BrickColor = BrickColor.new("Reddish brown")
- Part367.LeftParamA = 0
- Part367.LeftParamB = 0
- Part367.LeftSurface = Enum.SurfaceType.Weld
- Part367.RightParamA = 0
- Part367.RightParamB = 0
- Part367.RightSurface = Enum.SurfaceType.Weld
- Part367.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part367.brickColor = BrickColor.new("Reddish brown")
- Part367.FormFactor = Enum.FormFactor.Symmetric
- Part367.formFactor = Enum.FormFactor.Symmetric
- Part368.Name = "Left Leg"
- Part368.Parent = Model363
- Part368.CFrame = CFrame.new(120.608551, 2.60000181, 108.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part368.Orientation = Vector3.new(0, 90, 0)
- Part368.Position = Vector3.new(120.608551, 2.60000181, 108.013443)
- Part368.Rotation = Vector3.new(0, 90, 0)
- Part368.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part368.Velocity = Vector3.new(3.66480722e-20, 0.00686328812, 3.64315933e-20)
- Part368.Size = Vector3.new(1, 2, 1)
- Part368.BottomSurface = Enum.SurfaceType.Smooth
- Part368.BrickColor = BrickColor.new("Reddish brown")
- Part368.CanCollide = false
- Part368.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part368.brickColor = BrickColor.new("Reddish brown")
- Part368.FormFactor = Enum.FormFactor.Symmetric
- Part368.formFactor = Enum.FormFactor.Symmetric
- Part369.Name = "Right Leg"
- Part369.Parent = Model363
- Part369.CFrame = CFrame.new(120.608551, 2.60000181, 107.013443, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part369.Orientation = Vector3.new(0, 90, 0)
- Part369.Position = Vector3.new(120.608551, 2.60000181, 107.013443)
- Part369.Rotation = Vector3.new(0, 90, 0)
- Part369.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part369.Velocity = Vector3.new(3.6314376e-20, 0.00686328812, 3.64315933e-20)
- Part369.Size = Vector3.new(1, 2, 1)
- Part369.BottomSurface = Enum.SurfaceType.Smooth
- Part369.BrickColor = BrickColor.new("Reddish brown")
- Part369.CanCollide = false
- Part369.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part369.brickColor = BrickColor.new("Reddish brown")
- Part369.FormFactor = Enum.FormFactor.Symmetric
- Part369.formFactor = Enum.FormFactor.Symmetric
- Humanoid370.Parent = Model363
- Humanoid370.LeftLeg = Part368
- Humanoid370.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid370.RightLeg = Part369
- Humanoid370.Torso = Part367
- Part371.Name = "zarm"
- Part371.Parent = Model363
- Part371.CFrame = CFrame.new(120.108551, 5.10000277, 109.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part371.Orientation = Vector3.new(0, 180, 0)
- Part371.Position = Vector3.new(120.108551, 5.10000277, 109.013443)
- Part371.Rotation = Vector3.new(-180, 0, -180)
- Part371.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part371.Velocity = Vector3.new(3.69800334e-20, 0.00686328812, 3.65994592e-20)
- Part371.Size = Vector3.new(2, 1, 1)
- Part371.BottomSurface = Enum.SurfaceType.Smooth
- Part371.BrickColor = BrickColor.new("Medium green")
- Part371.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part371.TopSurface = Enum.SurfaceType.Smooth
- Part371.brickColor = BrickColor.new("Medium green")
- Part371.FormFactor = Enum.FormFactor.Symmetric
- Part371.formFactor = Enum.FormFactor.Symmetric
- Script372.Parent = Part371
- table.insert(cors,sandbox(Script372,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part373.Name = "zarm"
- Part373.Parent = Model363
- Part373.CFrame = CFrame.new(120.108551, 5.10000277, 106.013443, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part373.Orientation = Vector3.new(0, 180, 0)
- Part373.Position = Vector3.new(120.108551, 5.10000277, 106.013443)
- Part373.Rotation = Vector3.new(-180, 0, -180)
- Part373.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part373.Velocity = Vector3.new(3.59789445e-20, 0.00686328812, 3.65994592e-20)
- Part373.Size = Vector3.new(2, 1, 1)
- Part373.BottomSurface = Enum.SurfaceType.Smooth
- Part373.BrickColor = BrickColor.new("Medium green")
- Part373.RotVelocity = Vector3.new(4.07127958e-25, 3.33696291e-22, 6.94702468e-25)
- Part373.TopSurface = Enum.SurfaceType.Smooth
- Part373.brickColor = BrickColor.new("Medium green")
- Part373.FormFactor = Enum.FormFactor.Symmetric
- Part373.formFactor = Enum.FormFactor.Symmetric
- Script374.Parent = Part373
- table.insert(cors,sandbox(Script374,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue375.Name = "IsNZ"
- ObjectValue375.Parent = Model363
- IntValue376.Name = "Mode"
- IntValue376.Parent = Model363
- Script377.Parent = Model363
- table.insert(cors,sandbox(Script377,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script378.Name = "Health"
- Script378.Parent = Model363
- table.insert(cors,sandbox(Script378,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script379.Name = "Respawn"
- Script379.Parent = Model363
- table.insert(cors,sandbox(Script379,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part380.Name = "Spawn Location"
- Part380.Parent = Model362
- Part380.CFrame = CFrame.new(120.113548, 0.603018999, 107.491455, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part380.Orientation = Vector3.new(0, 180, 0)
- Part380.Position = Vector3.new(120.113548, 0.603018999, 107.491455)
- Part380.Rotation = Vector3.new(-180, 0, -180)
- Part380.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part380.Size = Vector3.new(6, 1.20000005, 6)
- Part380.BottomSurface = Enum.SurfaceType.Weld
- Part380.BrickColor = BrickColor.new("Medium green")
- Part380.TopSurface = Enum.SurfaceType.Smooth
- Part380.brickColor = BrickColor.new("Medium green")
- Decal381.Parent = Part380
- Decal381.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal381.Face = Enum.NormalId.Top
- Model382.Parent = Model201
- Model383.Name = "Zombie"
- Model383.Parent = Model382
- Model383.PrimaryPart = Part384
- Part384.Name = "Head"
- Part384.Parent = Model383
- Part384.CFrame = CFrame.new(120.591461, 6.10000277, 119.48645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part384.Orientation = Vector3.new(0, 90, 0)
- Part384.Position = Vector3.new(120.591461, 6.10000277, 119.48645)
- Part384.Rotation = Vector3.new(0, 90, 0)
- Part384.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part384.Size = Vector3.new(2, 1, 1)
- Part384.BrickColor = BrickColor.new("Medium green")
- Part384.TopSurface = Enum.SurfaceType.Smooth
- Part384.brickColor = BrickColor.new("Medium green")
- Part384.FormFactor = Enum.FormFactor.Symmetric
- Part384.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh385.Parent = Part384
- SpecialMesh385.Scale = Vector3.new(1.25, 1.25, 1.25)
- Decal386.Name = "face"
- Decal386.Parent = Part384
- Part387.Name = "Torso"
- Part387.Parent = Model383
- Part387.CFrame = CFrame.new(120.591461, 4.60000277, 119.48645, 0, 0, 1.00000024, 0, 1, 0, -1.00000024, 0, 0)
- Part387.Orientation = Vector3.new(0, 90, 0)
- Part387.Position = Vector3.new(120.591461, 4.60000277, 119.48645)
- Part387.Rotation = Vector3.new(0, 90, 0)
- Part387.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part387.Size = Vector3.new(2, 2, 1)
- Part387.BrickColor = BrickColor.new("Reddish brown")
- Part387.LeftParamA = 0
- Part387.LeftParamB = 0
- Part387.LeftSurface = Enum.SurfaceType.Weld
- Part387.RightParamA = 0
- Part387.RightParamB = 0
- Part387.RightSurface = Enum.SurfaceType.Weld
- Part387.brickColor = BrickColor.new("Reddish brown")
- Part387.FormFactor = Enum.FormFactor.Symmetric
- Part387.formFactor = Enum.FormFactor.Symmetric
- Part388.Name = "Left Leg"
- Part388.Parent = Model383
- Part388.CFrame = CFrame.new(120.591461, 2.60000181, 119.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part388.Orientation = Vector3.new(0, 90, 0)
- Part388.Position = Vector3.new(120.591461, 2.60000181, 119.98645)
- Part388.Rotation = Vector3.new(0, 90, 0)
- Part388.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part388.Size = Vector3.new(1, 2, 1)
- Part388.BottomSurface = Enum.SurfaceType.Smooth
- Part388.BrickColor = BrickColor.new("Reddish brown")
- Part388.CanCollide = false
- Part388.brickColor = BrickColor.new("Reddish brown")
- Part388.FormFactor = Enum.FormFactor.Symmetric
- Part388.formFactor = Enum.FormFactor.Symmetric
- Part389.Name = "Right Leg"
- Part389.Parent = Model383
- Part389.CFrame = CFrame.new(120.591461, 2.60000181, 118.98645, 0, 0, 1.00000072, 0, 1, 0, -1.00000072, 0, 0)
- Part389.Orientation = Vector3.new(0, 90, 0)
- Part389.Position = Vector3.new(120.591461, 2.60000181, 118.98645)
- Part389.Rotation = Vector3.new(0, 90, 0)
- Part389.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part389.Size = Vector3.new(1, 2, 1)
- Part389.BottomSurface = Enum.SurfaceType.Smooth
- Part389.BrickColor = BrickColor.new("Reddish brown")
- Part389.CanCollide = false
- Part389.brickColor = BrickColor.new("Reddish brown")
- Part389.FormFactor = Enum.FormFactor.Symmetric
- Part389.formFactor = Enum.FormFactor.Symmetric
- Humanoid390.Parent = Model383
- Humanoid390.LeftLeg = Part388
- Humanoid390.NameOcclusion = Enum.NameOcclusion.NoOcclusion
- Humanoid390.RightLeg = Part389
- Humanoid390.Torso = Part387
- Part391.Name = "zarm"
- Part391.Parent = Model383
- Part391.CFrame = CFrame.new(120.091461, 5.10000277, 120.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part391.Orientation = Vector3.new(0, 180, 0)
- Part391.Position = Vector3.new(120.091461, 5.10000277, 120.98645)
- Part391.Rotation = Vector3.new(-180, 0, -180)
- Part391.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part391.Size = Vector3.new(2, 1, 1)
- Part391.BottomSurface = Enum.SurfaceType.Smooth
- Part391.BrickColor = BrickColor.new("Medium green")
- Part391.TopSurface = Enum.SurfaceType.Smooth
- Part391.brickColor = BrickColor.new("Medium green")
- Part391.FormFactor = Enum.FormFactor.Symmetric
- Part391.formFactor = Enum.FormFactor.Symmetric
- Script392.Parent = Part391
- table.insert(cors,sandbox(Script392,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Part393.Name = "zarm"
- Part393.Parent = Model383
- Part393.CFrame = CFrame.new(120.091461, 5.10000277, 117.98645, -1.00000072, 0, 0, 0, 1, 0, 0, 0, -1.00000072)
- Part393.Orientation = Vector3.new(0, 180, 0)
- Part393.Position = Vector3.new(120.091461, 5.10000277, 117.98645)
- Part393.Rotation = Vector3.new(-180, 0, -180)
- Part393.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part393.Size = Vector3.new(2, 1, 1)
- Part393.BottomSurface = Enum.SurfaceType.Smooth
- Part393.BrickColor = BrickColor.new("Medium green")
- Part393.TopSurface = Enum.SurfaceType.Smooth
- Part393.brickColor = BrickColor.new("Medium green")
- Part393.FormFactor = Enum.FormFactor.Symmetric
- Part393.formFactor = Enum.FormFactor.Symmetric
- Script394.Parent = Part393
- table.insert(cors,sandbox(Script394,function()
- wait(1)
- owner=script.Parent.Parent.Name
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- if cantouch~=0 then
- if h.Parent.Name~=owner then
- if h.Parent:findFirstChild("zarm")~=nil then return end
- cantouch=0
- local larm=h.Parent:findFirstChild("Left Arm")
- local rarm=h.Parent:findFirstChild("Right Arm")
- if larm~=nil then
- larm:remove()
- end
- if rarm~=nil then
- rarm:remove()
- end
- local zee=script.Parent.Parent:findFirstChild("zarm")
- if zee~=nil then
- local zlarm=zee:clone()
- local zrarm=zee:clone()
- if zlarm~=nil then
- local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
- zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
- zlarm.Parent=h.Parent
- zrarm.Parent=h.Parent
- zlarm:makeJoints()
- zrarm:makeJoints()
- zlarm.Anchored=false
- zrarm.Anchored=false
- wait(0.1)
- h.Parent.Head.Color=zee.Color
- else print("no zee"); return end
- end
- wait(1)
- cantouch=1
- end
- end
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- ObjectValue395.Name = "IsNZ"
- ObjectValue395.Parent = Model383
- IntValue396.Name = "Mode"
- IntValue396.Parent = Model383
- Script397.Parent = Model383
- table.insert(cors,sandbox(Script397,function()
- local larm = script.Parent:FindFirstChild("Left Arm")
- local rarm = script.Parent:FindFirstChild("Right Arm")
- function findNearestTorso(pos)
- local list = game.Workspace:children()
- local torso = nil
- local dist = 1000
- local temp = nil
- local human = nil
- local temp2 = nil
- for x = 1, #list do
- temp2 = list[x]
- if (temp2.className == "Model") and (temp2 ~= script.Parent) then
- temp = temp2:findFirstChild("Right Arm")
- human = temp2:findFirstChild("Humanoid")
- if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
- if (temp.Position - pos).magnitude < dist then
- torso = temp
- dist = (temp.Position - pos).magnitude
- end
- end
- end
- end
- return torso
- end
- while true do
- wait(math.random(1,5))
- local target = findNearestTorso(script.Parent.Torso.Position)
- if target ~= nil then
- script.Parent.Humanoid:MoveTo(target.Position, target)
- end
- end
- end))
- Script398.Name = "Health"
- Script398.Parent = Model383
- table.insert(cors,sandbox(Script398,function()
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- Humanoid.Health=500
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * 1.05 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- end))
- Script399.Name = "Respawn"
- Script399.Parent = Model383
- table.insert(cors,sandbox(Script399,function()
- name="Humanoid"
- robo=script.Parent:clone()
- while true do
- wait(1)
- if script.Parent.Humanoid.Health<1 then
- robot=robo:clone()
- robot.Parent=script.Parent.Parent
- robot:makeJoints()
- script.Parent:remove()
- end
- end
- end))
- Part400.Name = "Spawn Location"
- Part400.Parent = Model382
- Part400.CFrame = CFrame.new(120.091446, 0.600021005, 119.48645, -1.00000024, 0, 0, 0, 1, 0, 0, 0, -1.00000024)
- Part400.Orientation = Vector3.new(0, 180, 0)
- Part400.Position = Vector3.new(120.091446, 0.600021005, 119.48645)
- Part400.Rotation = Vector3.new(-180, 0, -180)
- Part400.Color = Color3.new(0.631373, 0.768628, 0.54902)
- Part400.Size = Vector3.new(6, 1.20000005, 6)
- Part400.BottomSurface = Enum.SurfaceType.Weld
- Part400.BrickColor = BrickColor.new("Medium green")
- Part400.TopSurface = Enum.SurfaceType.Smooth
- Part400.brickColor = BrickColor.new("Medium green")
- Decal401.Parent = Part400
- Decal401.Texture = "http://www.roblox.com/asset/?id=34541722"
- Decal401.Face = Enum.NormalId.Top
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement