bloxrox28Join Date: 2010-04-25 Post Count: 194 |
Zombies need chase scripts to be able to follow you and health scripts so you can kill them and they wont die right away... also add a killing/lava script so when it touches you it kills you. I suggest getting one from the catalog and copying the scripts into your own zombie unless you just want to keep the zombie you get. |
|
|
hobo the reason i think is that some ppls isnt working is because they need spaces in some of them.
RESPAWN
_______________________
name="Humanoida"
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
FOLLOW
__________________________
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 = 200000000000
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("Torso")
human = temp2:findFirstChild("Humanoid")
Friend = temp2:findFirstChild("Friend")
if (temp ~= nil) and (human ~= nil) and (human.Health > 0) and (Friend == nil) or (temp ~= nil) and (human ~= nil) and (human.Health > 0) and (Friend.Value ~= script.Parent.Friend.Value) 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(0.1)
local target = findNearestTorso(script.Parent.Torso.Position)
if target ~= nil then
script.Parent.Humanoida:MoveTo(target.Position, target)
end
end
HURT/KILL
i think this is how it is
__________________________
function onTouched(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Health = humanoid.Health - 10
end
end
script.Parent.Touched:connect(onTouched)
im not sure about the health regeneration |
|
|
wait it doesnt let spaces weird |
|
|
If you just added the scripts, copy, then cut.
Paste into the terrain and it should 'refresh' the scripts. |
|
|
|
... I tried making a zombie (before reading this) and don't you need to add something like a motor named left hip or right arm or something and put it into the torso? |
|
|
|
Someone help mine wont move |
|
|
And won't respawn......I need someone to tell me what parts to put the scrpits in. |
|
mattc401Join Date: 2012-08-05 Post Count: 2 |
help i dont konw what to do to make a zombie.
|
|
|
is there a easyer way to make zombies
|
|
|
tell me like: a simple way to make zombies for your place
|
|
|
|
how can u tweak the walkspeed in the follow script? PM me when u get the chance.
|
|
|
ho do i make a zombie on roblox i do not now how
|
|
|
ahmad526Join Date: 2012-12-06 Post Count: 2 |
ahmad |
|
|
i think i know what you did wrong. you probably had your zombie attached to the ground. |
|
|
Dude its probably attached to the ground. |
|
|
There is no "simple" way. all of them either involve you getting a free model, or scripting it yourself. |
|
|
how to connect arm and leg to torso? |
|
|
1
.you need to get four bricks
2.
put two bricks on the floor making them stand up strate
3.
then get one brick and put it on the legs
4.
then get two bricks and put it on the sides of the belley
5.
then just put a head on the zombie and turn it green buy clicking on your zombie you click at a person then the zombie will chase them
|
|
|
do not anchor your zombie parts too or il will stand still |
|
|
jmerustiJoin Date: 2006-11-18 Post Count: 1682 |
Zombie out of parts, or an actually moving zombie? |
|