I managed to fix it myself, with a lot of help from LordDragonZord. Thanks!
I made a script (in a tool) that will command units to anywhere you click. This is the script:
[P.s: It is a normal script in a Tool.]
local Tool = script.Parent
local Mouse = Tool.Equipped
Tool.Activated:connect(function(part)
if script.Parent.Selected.Value == nil then
if part:IsA("Part") then
if part.Name == "Torso" then
if part.Parent:FindFirstChild("Zombie") then
if part.Parent.Owner.Value == script.Parent.Parent.Name then
script.Parent.Selected.Value = part.Parent
end
end
end
end
else
local PositionP = Instance.new("Part", game.Workspace)
PositionP.Anchored = true
PositionP.Name = "UnitWalkTo"
PositionP.BrickColor = BrickColor.new("Bright red")
local WalkToVector = PositionP.Position
PositionP:remove()
script.Parent.Selected.Zombie.WalkToPoint = WalkToVector
script.Parent.Selected.Value = nil
end
end)
Tool.Deactivated:connect(function()
--lets clean :]
script.Parent.Selected.Value = nil
end)
Selected is an ObjectValue, Zombie is a Humanoid.
Any help is appreciated, thanks!

2 comments
pls add some more info about what error you have ?
the problem is there are no errors