Missing argument #2 to 'Dot' (Vector3 expected)

I can’t get the .Dot product to work for some reason. It keeps giving the error I typed in the title. This is my code:

print(Target.HumanoidRootPart.CFrame.LookVector); -- Obviously returns a Vector3 so that's not the problem
local TargetLookVector = Target.HumanoidRootPart.CFrame.LookVector;
local PositionCalculation = (Tagger.HumanoidRootPart.Position - Target.HumanoidRootPart.Position).Unit; -- Maybe this is the problem?
if PositionCalculation.Dot(TargetLookVector) < 0 then
	Target:SetAttribute("Block", nil);
end;

You need to use the colon.
PositionCalculation:Dot()

2 Likes