✓ Accepted answer
@zup123's is a actually a practical example.. the thing is, the part might never reach that exact point - due to things like increment, or current displacement of the part.. another thing might be the fact that == might be checking to see if one vector is the same vector instance your comparing..
so I'd recommend that you check for the magnitude between the target vector, and the position of the part...
like this:
local Radius= 4
local TargetVector = Vector3.new (-5.5, 2.5, 10.5)
Part = workspace.Box:WaitForChild("Part");
repeat
wait()
until (Part.Position - TargetVector).Magnitude <= Radius
Part:Destroy();
1 comment
I never check if a parts position is a certain vector because that would have to be a really really perfect amount... try checking if a part collides with another part in that area