Know when a part is going too far

Hey
i made a tween system where the player can move a part to the left and to the right but the part is always going too far so i need to add a way to verify if the part is too far
i tried introducing this but i dont know what to do else

if part.Position.Z >= Vector3.new(400)  then
print("too far")
end

Try part.Position.Z >= 400 (Z should already just be an integer)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.