Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I want to make a zombie that follows you , but isnt working. What is wrong with the script?

the script is a local script and its located in the zombie's humanoid

local i = game.Players.LocalPlayer
local e = i.Character
while true do
	if (e.Torso.Position - script.Parent.Parent.Torso.Position).magnitude <30 then
		script.Parent.WalkToPoint = e.Torso.Position
	else
		break
	end
end

1 answer

I think you should use a server script instead of a local script since this only follows the local player? On the server script, you could get the closest player to the zombie or a targeted player and make the zombie follow them.

1 comment

0

ok , thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.