I dont know why my zombies always move to one point no matter where I click can someone help`~~
local rp = game:GetService("ReplicatedStorage")
local remote = rp:FindFirstChild("Z1")
remote.OnServerEvent:Connect(function(player, val, Mouse)
if val == "CommandZombie" then
for i,v in pairs(workspace:GetChildren()) do
if v.Zombie then
v.Zombie:MoveTo(Vector3.new(Mouse))
end
end
end
end)

2 comments
Explain your parameters
I posted my local script below. It is clearer